From a63f2119a5123a7a30f2bf7e73bf2262a712c030 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 18 Dec 2024 17:48:16 +0100 Subject: [PATCH] Added rest of the errors to baseline --- phpstan-baseline.neon | 139 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index e69de29..f3fca47 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -0,0 +1,139 @@ +parameters: + ignoreErrors: + - + message: '#^Parameter \#1 \$href of method Ibexa\\Rest\\RequestParser\:\:parseHref\(\) expects string, string\|null given\.$#' + identifier: argument.type + count: 1 + path: src/bundle/Controller/QueryFieldRestController.php + + - + message: '#^Parameter \#1 \$locationId of method Ibexa\\Contracts\\Core\\Repository\\LocationService\:\:loadLocation\(\) expects int, int\|null given\.$#' + identifier: argument.type + count: 1 + path: src/bundle/Controller/QueryFieldRestController.php + + - + message: '#^Argument of an invalid type array\|bool\|float\|int\|string\|null supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable + count: 1 + path: src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php + + - + message: '#^Cannot access offset \(int\|string\) on non\-empty\-array\|bool\|float\|int\|string\|null\.$#' + identifier: offsetAccess.nonOffsetAccessible + count: 1 + path: src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php + + - + message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(int\|string\)\: bool\)\|null, Closure\(mixed\)\: \(0\|1\|false\) given\.$#' + identifier: argument.type + count: 1 + path: src/bundle/DependencyInjection/Compiler/FieldDefinitionIdentifierViewMatcherPass.php + + - + message: '#^Parameter \#1 \$queryTypeIdentifier of method Ibexa\\Bundle\\FieldTypeQuery\\DependencyInjection\\Compiler\\QueryTypesListPass\:\:buildQueryTypeName\(\) expects string, int\|string given\.$#' + identifier: argument.type + count: 1 + path: src/bundle/DependencyInjection/Compiler/QueryTypesListPass.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/IbexaFieldTypeQueryExtension.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\ContentView\\QueryResultsInjector\:\:__construct\(\) has parameter \$views with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/ContentView/QueryResultsInjector.php + + - + message: '#^Property Ibexa\\FieldTypeQuery\\ContentView\\QueryResultsInjector\:\:\$queryFieldService \(Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldLocationService&Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldServiceInterface\) does not accept Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldServiceInterface\.$#' + identifier: assign.propertyType + count: 1 + path: src/lib/ContentView/QueryResultsInjector.php + + - + message: '#^Property Ibexa\\FieldTypeQuery\\ContentView\\QueryResultsInjector\:\:\$views type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/ContentView/QueryResultsInjector.php + + - + message: '#^Property Ibexa\\FieldTypeQuery\\ExceptionSafeQueryFieldService\:\:\$inner \(Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldLocationService&Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldServiceInterface\) does not accept Ibexa\\Contracts\\FieldTypeQuery\\QueryFieldServiceInterface\.$#' + identifier: assign.propertyType + count: 1 + path: src/lib/ExceptionSafeQueryFieldService.php + + - + message: '#^Class Ibexa\\FieldTypeQuery\\FieldType\\Form\\QueryFieldFormType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/lib/FieldType/Form/QueryFieldFormType.php + + - + message: '#^Generator expects key type string, string\|null given\.$#' + identifier: generator.keyType + count: 1 + path: src/lib/FieldType/Mapper/QueryFormMapper.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\FieldType\\Mapper\\QueryFormMapper\:\:mapFieldDefinitionForm\(\) has parameter \$fieldDefinitionForm with generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/lib/FieldType/Mapper/QueryFormMapper.php + + - + message: '#^Property Ibexa\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue\:\:\$dataText \(string\) does not accept array\|bool\|float\|int\|string\|null\.$#' + identifier: assign.propertyType + count: 1 + path: src/lib/Persistence/Legacy/Content/FieldValue/Converter/QueryConverter.php + + - + message: '#^Anonymous function should return Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content but returns Ibexa\\Contracts\\Core\\Repository\\Values\\ValueObject\.$#' + identifier: return.type + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:isExpression\(\) has parameter \$expression with no type specified\.$#' + identifier: missingType.parameter + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:prepareQuery\(\) has parameter \$extraParameters with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:resolveExpression\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:resolveExpression\(\) has parameter \$variables with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:resolveParameters\(\) has parameter \$expressions with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:resolveParameters\(\) has parameter \$variables with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/QueryFieldService.php + + - + message: '#^Method Ibexa\\FieldTypeQuery\\QueryFieldService\:\:resolveParameters\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/QueryFieldService.php