-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa: add phpstan + baseline (temporarily)
- Loading branch information
1 parent
82dc2a1
commit bcf1327
Showing
4 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#2 \\$registry of class Neusta\\\\Pimcore\\\\TestingFramework\\\\Database\\\\PimcoreDatabaseResetter constructor expects Doctrine\\\\Persistence\\\\ManagerRegistry, object given\\.$#" | ||
count: 1 | ||
path: src/Database/DatabaseResetter.php | ||
|
||
- | ||
message: "#^Method Neusta\\\\Pimcore\\\\TestingFramework\\\\Database\\\\PimcoreInstaller\\:\\:getDataFiles\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^Method Neusta\\\\Pimcore\\\\TestingFramework\\\\Database\\\\PimcoreInstaller\\:\\:getDataFiles\\(\\) should return array but returns array\\<int, string\\>\\|false\\.$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^PHPDoc tag @throws with type Doctrine\\\\DBAL\\\\DBALException is not subtype of Throwable$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$sql of method Doctrine\\\\DBAL\\\\Connection\\:\\:exec\\(\\) expects string, string\\|false given\\.$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$string of function explode expects string, string\\|false given\\.$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^Property Neusta\\\\Pimcore\\\\TestingFramework\\\\Database\\\\PimcoreInstaller\\:\\:\\$dumpLocation \\(string\\|null\\) does not accept string\\|false\\.$#" | ||
count: 1 | ||
path: src/Database/PimcoreInstaller.php | ||
|
||
- | ||
message: "#^Method Neusta\\\\Pimcore\\\\TestingFramework\\\\Database\\\\RunCommand\\:\\:__invoke\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Database/RunCommand.php | ||
|
||
- | ||
message: "#^Method Pimcore\\\\Kernel\\:\\:configureContainer\\(\\) invoked with 1 parameter, 3 required\\.$#" | ||
count: 1 | ||
path: src/Kernel/TestKernel.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$bundle of method Pimcore\\\\HttpKernel\\\\BundleCollection\\\\BundleCollection\\:\\:addBundle\\(\\) expects string\\|Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\BundleInterface, Pimcore\\\\Bundle\\\\AdminBundle\\\\PimcoreAdminBundle given\\.$#" | ||
count: 1 | ||
path: src/Kernel/TestKernel.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$name of static method Neusta\\\\Pimcore\\\\TestingFramework\\\\Pimcore\\\\BootstrapPimcore\\:\\:setEnv\\(\\) expects string, int\\|string given\\.$#" | ||
count: 1 | ||
path: src/Pimcore/BootstrapPimcore.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
|
||
level: 8 | ||
|
||
paths: | ||
- src | ||
|
||
bootstrapFiles: | ||
- vendor/pimcore/pimcore/stubs/dynamic-constants.php | ||
|
||
checkGenericClassInNonGenericObjectType: false |