-
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.
[CI] Added phpstan with baseline & fixed some issues (#55)
* [CI] Added phpstan with baseline & fixed some issues * cs fixes * bumped phpstan to 2.0
- Loading branch information
Showing
21 changed files
with
271 additions
and
156 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,211 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: '#^Cannot access offset ''entries'' on array\|bool\|float\|int\|string\|null\.$#' | ||
identifier: offsetAccess.nonOffsetAccessible | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Cannot call method fetchAll\(\) on Doctrine\\DBAL\\ForwardCompatibility\\Result\|int\|string\.$#' | ||
identifier: method.nonObject | ||
count: 2 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\ForwardCompatibility\\Result\|int\|string\.$#' | ||
identifier: method.nonObject | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:configure\(\) has no return type specified\.$#' | ||
identifier: missingType.return | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:convertCellsToRows\(\) has parameter \$cells with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:convertCellsToRows\(\) has parameter \$columns with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:convertCellsToRows\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:getContentClassAttributes\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Method Ibexa\\Bundle\\FieldTypeMatrix\\Command\\MigrateLegacyMatrixCommand\:\:getContentObjectAttributes\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Variable \$xml might not be defined\.$#' | ||
identifier: variable.undefined | ||
count: 1 | ||
path: src/bundle/Command/MigrateLegacyMatrixCommand.php | ||
|
||
- | ||
message: '#^Parameter \#1 \$input of static method Symfony\\Component\\Yaml\\Yaml\:\:parse\(\) expects string, string\|false given\.$#' | ||
identifier: argument.type | ||
count: 1 | ||
path: src/bundle/DependencyInjection/IbexaFieldTypeMatrixExtension.php | ||
|
||
- | ||
message: '#^Property Ibexa\\Core\\Persistence\\Legacy\\Content\\StorageFieldDefinition\:\:\$dataText5 \(string\) on left side of \?\? is not nullable\.$#' | ||
identifier: nullCoalesce.property | ||
count: 1 | ||
path: src/lib/FieldType/Converter/MatrixConverter.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:__construct\(\) has parameter \$cells with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:__get\(\) has no return type specified\.$#' | ||
identifier: missingType.return | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:__get\(\) has parameter \$name with no type specified\.$#' | ||
identifier: missingType.parameter | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:__isset\(\) has parameter \$name with no type specified\.$#' | ||
identifier: missingType.parameter | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:getCells\(\) return type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(string\)\: bool\)\|null, ''strlen'' given\.$#' | ||
identifier: argument.type | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Property Ibexa\\FieldTypeMatrix\\FieldType\\Value\\Row\:\:\$cells type has no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/FieldType/Value/Row.php | ||
|
||
- | ||
message: '#^Class Ibexa\\FieldTypeMatrix\\Form\\Type\\ColumnType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' | ||
identifier: missingType.generics | ||
count: 1 | ||
path: src/lib/Form/Type/ColumnType.php | ||
|
||
- | ||
message: '#^Class Ibexa\\FieldTypeMatrix\\Form\\Type\\FieldType\\MatrixCollectionType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' | ||
identifier: missingType.generics | ||
count: 1 | ||
path: src/lib/Form/Type/FieldType/MatrixCollectionType.php | ||
|
||
- | ||
message: '#^Class Ibexa\\FieldTypeMatrix\\Form\\Type\\FieldType\\MatrixEntryType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' | ||
identifier: missingType.generics | ||
count: 1 | ||
path: src/lib/Form/Type/FieldType/MatrixEntryType.php | ||
|
||
- | ||
message: '#^Class Ibexa\\FieldTypeMatrix\\Form\\Type\\FieldType\\MatrixFieldType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' | ||
identifier: missingType.generics | ||
count: 1 | ||
path: src/lib/Form/Type/FieldType/MatrixFieldType.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\InputHandler\:\:toFieldValue\(\) has parameter \$input with no type specified\.$#' | ||
identifier: missingType.parameter | ||
count: 1 | ||
path: src/lib/GraphQL/InputHandler.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\InputHandler\:\:toFieldValue\(\) has parameter \$inputFormat with no type specified\.$#' | ||
identifier: missingType.parameter | ||
count: 1 | ||
path: src/lib/GraphQL/InputHandler.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionInputSchemaWorker\:\:canWork\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionInputSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionInputSchemaWorker\:\:typeName\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionInputSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionInputSchemaWorker\:\:work\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionInputSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionSchemaWorker\:\:canWork\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionSchemaWorker\:\:typeName\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\Schema\\MatrixFieldDefinitionSchemaWorker\:\:work\(\) has parameter \$args with no value type specified in iterable type array\.$#' | ||
identifier: missingType.iterableValue | ||
count: 1 | ||
path: src/lib/GraphQL/Schema/MatrixFieldDefinitionSchemaWorker.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\SilentRow\:\:__get\(\) has no return type specified\.$#' | ||
identifier: missingType.return | ||
count: 1 | ||
path: src/lib/GraphQL/SilentRow.php | ||
|
||
- | ||
message: '#^Method Ibexa\\FieldTypeMatrix\\GraphQL\\SilentRow\:\:__get\(\) has parameter \$name with no type specified\.$#' | ||
identifier: missingType.parameter | ||
count: 1 | ||
path: src/lib/GraphQL/SilentRow.php | ||
|
||
- | ||
message: '#^Static property Ibexa\\Contracts\\Core\\Test\\Repository\\SetupFactory\\Legacy\:\:\$serviceContainer \(Ibexa\\Core\\Base\\ServiceContainer\) in isset\(\) is not nullable\.$#' | ||
identifier: isset.property | ||
count: 1 | ||
path: tests/lib/LegacySetupFactory.php | ||
|
||
- | ||
message: '#^Access to an undefined property Ibexa\\Contracts\\Core\\Repository\\Values\\ValueObject\:\:\$id\.$#' | ||
identifier: property.notFound | ||
count: 1 | ||
path: tests/lib/Repository/SearchServiceTest.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,10 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-symfony/extension.neon | ||
|
||
parameters: | ||
level: 8 | ||
paths: | ||
- src | ||
- tests |
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
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
Oops, something went wrong.