diff --git a/composer.json b/composer.json index 990afad..e7c1a82 100644 --- a/composer.json +++ b/composer.json @@ -42,9 +42,9 @@ "friendsofphp/php-cs-fixer": "^3.0", "ibexa/code-style": "^1.0", "ibexa/doctrine-schema": "~4.6.x-dev", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-phpunit": "^1.3", - "phpstan/phpstan-symfony": "^1.3", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-symfony": "^2.0", "matthiasnoback/symfony-dependency-injection-test": "^4.3" }, "scripts": { diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1158007..6b5f404 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,276 +1,487 @@ parameters: ignoreErrors: - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\DependencyInjection\\\\Configuration\\\\Parser\\\\Search\\:\\:addSemanticConfig\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\DependencyInjection\\Configuration\\Parser\\Search\:\:addSemanticConfig\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/DependencyInjection/Configuration/Parser/Search.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\DependencyInjection\\\\Configuration\\\\Parser\\\\Search\\:\\:mapConfig\\(\\) has parameter \\$scopeSettings with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\DependencyInjection\\Configuration\\Parser\\Search\:\:mapConfig\(\) has parameter \$scopeSettings with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/DependencyInjection/Configuration/Parser/Search.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\DependencyInjection\\\\IbexaSearchExtension\\:\\:load\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\DependencyInjection\\IbexaSearchExtension\:\:load\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/DependencyInjection/IbexaSearchExtension.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\ChoiceLoader\\\\ConfiguredLanguagesChoiceLoader\\:\\:getChoiceList\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\ChoiceLoader\\ConfiguredLanguagesChoiceLoader\:\:getChoiceList\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/ChoiceLoader/ConfiguredLanguagesChoiceLoader.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\ChoiceLoader\\\\ContentTypeChoiceLoader\\:\\:getChoiceList\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\ChoiceLoader\\ContentTypeChoiceLoader\:\:getChoiceList\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/ChoiceLoader/ContentTypeChoiceLoader.php - - message: "#^Parameter \\#1 \\$array of function usort expects TArray of array\\, iterable\\ given\\.$#" + message: '#^Parameter \#1 \$array of function usort expects TArray of array\, iterable\ given\.$#' + identifier: argument.type count: 1 path: src/bundle/Form/ChoiceLoader/ContentTypeChoiceLoader.php - - message: "#^Parameter \\#1 \\$string1 of function strnatcasecmp expects string, string\\|null given\\.$#" + message: '#^Parameter \#1 \$string1 of function strnatcasecmp expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/bundle/Form/ChoiceLoader/ContentTypeChoiceLoader.php - - message: "#^Parameter \\#2 \\$string2 of function strnatcasecmp expects string, string\\|null given\\.$#" + message: '#^Parameter \#2 \$string2 of function strnatcasecmp expects string, string\|null given\.$#' + identifier: argument.type count: 1 path: src/bundle/Form/ChoiceLoader/ContentTypeChoiceLoader.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:__construct\\(\\) has parameter \\$contentTypes with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:__construct\(\) has parameter \$contentTypes with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:__construct\\(\\) has parameter \\$created with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:__construct\(\) has parameter \$created with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:__construct\\(\\) has parameter \\$lastModified with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:__construct\(\) has parameter \$lastModified with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:getContentTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:getContentTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:getCreated\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:getCreated\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:getLastModified\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:getLastModified\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:getSearchUsersData\\(\\) should return Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\|null but returns array\\\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:getSearchUsersData\(\) should return Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\|null but returns array\\.$#' + identifier: return.type count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:setContentTypes\\(\\) has parameter \\$contentTypes with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:setContentTypes\(\) has parameter \$contentTypes with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:setCreated\\(\\) has parameter \\$created with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:setCreated\(\) has parameter \$created with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:setLastModified\\(\\) has parameter \\$lastModified with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:setLastModified\(\) has parameter \$lastModified with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$created type has no value type specified in iterable type array\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$created type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$creator \\(Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\User\\\\User\\) does not accept Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\User\\\\User\\|null\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$creator \(Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User\|null\.$#' + identifier: assign.propertyType count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$lastModified type has no value type specified in iterable type array\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$lastModified type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$query \\(string\\) does not accept string\\|null\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$query \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 2 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$searchUsersData \\(array\\\\) does not accept Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\|null\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$searchUsersData \(array\\) does not accept Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\|null\.$#' + identifier: assign.propertyType count: 2 path: src/bundle/Form/Data/SearchData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchData\\:\\:\\$section \\(Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Section\\) does not accept Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Section\\|null\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchData\:\:\$section \(Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\) does not accept Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Section\|null\.$#' + identifier: assign.propertyType count: 2 path: src/bundle/Form/Data/SearchData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\:\\:__construct\\(\\) has parameter \\$possibleUsers with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\:\:__construct\(\) has parameter \$possibleUsers with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchUsersData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\:\\:getPossibleUsers\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\:\:getPossibleUsers\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchUsersData.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\:\\:setPossibleUsers\\(\\) has parameter \\$possibleUsers with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\:\:setPossibleUsers\(\) has parameter \$possibleUsers with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Data/SearchUsersData.php - - message: "#^Property Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Data\\\\SearchUsersData\\:\\:\\$query \\(string\\) does not accept string\\|null\\.$#" + message: '#^Property Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData\:\:\$query \(string\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 2 path: src/bundle/Form/Data/SearchUsersData.php - - message: "#^Class Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\DateIntervalTransformer implements generic interface Symfony\\\\Component\\\\Form\\\\DataTransformerInterface but does not specify its types\\: T, R$#" + message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\DateIntervalTransformer\\:\\:reverseTransform\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" + message: '#^Class Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer implements generic interface Symfony\\Component\\Form\\DataTransformerInterface but does not specify its types\: T, R$#' + identifier: missingType.generics count: 1 path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\DateIntervalTransformer\\:\\:reverseTransform\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer\:\:reverseTransform\(\) has parameter \$value with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\DateIntervalTransformer\\:\\:transform\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer\:\:reverseTransform\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\DateIntervalTransformer\\:\\:transform\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer\:\:transform\(\) has Symfony\\Component\\Form\\Exception\\TransformationFailedException in PHPDoc @throws tag but it''s not thrown\.$#' + identifier: throws.unusedType count: 1 path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php - - message: "#^Class Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\UserTransformer implements generic interface Symfony\\\\Component\\\\Form\\\\DataTransformerInterface but does not specify its types\\: T, R$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer\:\:transform\(\) has parameter \$value with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php + + - + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\DateIntervalTransformer\:\:transform\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/bundle/Form/DataTransformer/DateIntervalTransformer.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\DataTransformer\\UserTransformer implements generic interface Symfony\\Component\\Form\\DataTransformerInterface but does not specify its types\: T, R$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/DataTransformer/UserTransformer.php + + - + message: '#^Instanceof between Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User and Ibexa\\Contracts\\Core\\Repository\\Values\\User\\User will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: src/bundle/Form/DataTransformer/UserTransformer.php - - message: "#^Class Ibexa\\\\Bundle\\\\Search\\\\Form\\\\DataTransformer\\\\UsersTransformer implements generic interface Symfony\\\\Component\\\\Form\\\\DataTransformerInterface but does not specify its types\\: T, R$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\DataTransformer\\UserTransformer\:\:transform\(\) has Symfony\\Component\\Form\\Exception\\TransformationFailedException in PHPDoc @throws tag but it''s not thrown\.$#' + identifier: throws.unusedType + count: 1 + path: src/bundle/Form/DataTransformer/UserTransformer.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\DataTransformer\\UsersTransformer implements generic interface Symfony\\Component\\Form\\DataTransformerInterface but does not specify its types\: T, R$#' + identifier: missingType.generics count: 1 path: src/bundle/Form/DataTransformer/UsersTransformer.php - - message: "#^PHPDoc tag @return with type mixed is not subtype of native type string\\|null\\.$#" + message: '#^Instanceof between Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData and Ibexa\\Bundle\\Search\\Form\\Data\\SearchUsersData will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: src/bundle/Form/DataTransformer/UsersTransformer.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\ContentTypeChoiceType\\:\\:configureOptions\\(\\) has no return type specified\\.$#" + message: '#^PHPDoc tag @return with type mixed is not subtype of native type string\|null\.$#' + identifier: return.phpDocType + count: 1 + path: src/bundle/Form/DataTransformer/UsersTransformer.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\ContentTypeChoiceType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/ContentTypeChoiceType.php + + - + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\ContentTypeChoiceType\:\:configureOptions\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/Form/Type/ContentTypeChoiceType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\DateIntervalType\\:\\:buildForm\\(\\) has no return type specified\\.$#" + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\DateIntervalType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/DateIntervalType.php + + - + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\DateIntervalType\:\:buildForm\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/Form/Type/DateIntervalType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SearchType\\:\\:buildForm\\(\\) has no return type specified\\.$#" + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\LanguageChoiceType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/LanguageChoiceType.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\SearchType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/SearchType.php + + - + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchType\:\:buildForm\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/Form/Type/SearchType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SearchType\\:\\:buildForm\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchType\:\:buildForm\(\) has parameter \$builder with generic interface Symfony\\Component\\Form\\FormBuilderInterface but does not specify its types\: TData$#' + identifier: missingType.generics count: 1 path: src/bundle/Form/Type/SearchType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SearchType\\:\\:configureOptions\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchType\:\:buildForm\(\) has parameter \$options with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/bundle/Form/Type/SearchType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SearchUsersType\\:\\:buildForm\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchType\:\:configureOptions\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: src/bundle/Form/Type/SearchType.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\SearchUsersType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics count: 1 path: src/bundle/Form/Type/SearchUsersType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SearchUsersType\\:\\:configureOptions\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchUsersType\:\:buildForm\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/Form/Type/SearchUsersType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\SectionChoiceType\\:\\:configureOptions\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SearchUsersType\:\:configureOptions\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: src/bundle/Form/Type/SearchUsersType.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\SectionChoiceType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics count: 1 path: src/bundle/Form/Type/SectionChoiceType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\Form\\\\Type\\\\UserType\\:\\:buildForm\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\SectionChoiceType\:\:configureOptions\(\) has no return type specified\.$#' + identifier: missingType.return + count: 1 + path: src/bundle/Form/Type/SectionChoiceType.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\SortingDefinitionChoiceType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/SortingDefinitionChoiceType.php + + - + message: '#^Class Ibexa\\Bundle\\Search\\Form\\Type\\UserType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/bundle/Form/Type/UserType.php + + - + message: '#^Method Ibexa\\Bundle\\Search\\Form\\Type\\UserType\:\:buildForm\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/Form/Type/UserType.php - - message: "#^Method Ibexa\\\\Bundle\\\\Search\\\\IbexaSearchBundle\\:\\:build\\(\\) has no return type specified\\.$#" + message: '#^Method Ibexa\\Bundle\\Search\\IbexaSearchBundle\:\:build\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/bundle/IbexaSearchBundle.php - - message: "#^Cannot access offset int on iterable\\\\.$#" + message: '#^Cannot access offset int on iterable\\.$#' + identifier: offsetAccess.nonOffsetAccessible count: 1 path: src/lib/Mapper/PagerSearchContentToDataMapper.php - - message: "#^Method Ibexa\\\\Search\\\\Mapper\\\\PagerSearchContentToDataMapper\\:\\:map\\(\\) has parameter \\$pager with generic class Pagerfanta\\\\Pagerfanta but does not specify its types\\: T$#" + message: '#^Method Ibexa\\Search\\Mapper\\PagerSearchContentToDataMapper\:\:map\(\) has parameter \$pager with generic class Pagerfanta\\Pagerfanta but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/lib/Mapper/PagerSearchContentToDataMapper.php - - message: "#^Parameter \\#1 \\$array of function array_filter expects array, iterable\\ given\\.$#" + message: '#^Parameter \#1 \$array of function array_filter expects array, iterable\ given\.$#' + identifier: argument.type count: 1 path: src/lib/Mapper/PagerSearchContentToDataMapper.php - - message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Search\\\\SearchHit\\:\\:\\$score \\(float\\) on left side of \\?\\? is not nullable\\.$#" + message: '#^Parameter &\$data by\-ref type of method Ibexa\\Search\\Mapper\\PagerSearchContentToDataMapper\:\:setTranslatedContentTypesNames\(\) expects array\, non\-empty\-array\ given\.$#' + identifier: parameterByRef.type + count: 3 + path: src/lib/Mapper/PagerSearchContentToDataMapper.php + + - + message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Search\\SearchHit\:\:\$score \(float\) on left side of \?\? is not nullable\.$#' + identifier: nullCoalesce.property count: 1 path: src/lib/Mapper/SearchHitToContentSuggestionMapper.php - - message: "#^Method Ibexa\\\\Search\\\\QueryType\\\\SearchQueryType\\:\\:doGetQuery\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Search\\QueryType\\SearchQueryType\:\:doGetQuery\(\) has parameter \$parameters with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/lib/QueryType/SearchQueryType.php - - message: "#^Method Ibexa\\\\Search\\\\View\\\\SearchViewBuilder\\:\\:buildView\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Search\\Serializer\\Normalizer\\Suggestion\\ParentLocationCollectionNormalizer\:\:normalize\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/Serializer/Normalizer/Suggestion/ParentLocationCollectionNormalizer.php + + - + message: '#^PHPDoc tag @return has invalid value \(array\\.\)\: Unexpected token "\.", expected TOKEN_HORIZONTAL_WS at offset 174 on line 5$#' + identifier: phpDoc.parseError + count: 1 + path: src/lib/Serializer/Normalizer/Suggestion/ParentLocationCollectionNormalizer.php + + - + message: '#^Method Ibexa\\Search\\Serializer\\Normalizer\\Suggestion\\SuggestionCollectionNormalizer\:\:normalize\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 1 + path: src/lib/Serializer/Normalizer/Suggestion/SuggestionCollectionNormalizer.php + + - + message: '#^PHPDoc tag @return has invalid value \(array\\.\)\: Unexpected token "\.", expected TOKEN_HORIZONTAL_WS at offset 173 on line 5$#' + identifier: phpDoc.parseError + count: 1 + path: src/lib/Serializer/Normalizer/Suggestion/SuggestionCollectionNormalizer.php + + - + message: '#^Method Ibexa\\Search\\View\\SearchViewBuilder\:\:buildView\(\) has parameter \$parameters with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/lib/View/SearchViewBuilder.php - - message: "#^Method Ibexa\\\\Search\\\\View\\\\SearchViewBuilder\\:\\:getSearchLanguageFilter\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Ibexa\\Search\\View\\SearchViewBuilder\:\:getSearchLanguageFilter\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/lib/View/SearchViewBuilder.php - - message: "#^Method Ibexa\\\\Search\\\\View\\\\SearchViewProvider\\:\\:buildSearchListView\\(\\) has parameter \\$viewConfig with no value type specified in iterable type array\\.$#" + message: '#^PHPDoc tag @var for variable \$form contains generic interface Symfony\\Component\\Form\\FormInterface but does not specify its types\: TData$#' + identifier: missingType.generics + count: 1 + path: src/lib/View/SearchViewBuilder.php + + - + message: '#^Method Ibexa\\Search\\View\\SearchViewProvider\:\:buildSearchListView\(\) has parameter \$viewConfig with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/lib/View/SearchViewProvider.php - - message: "#^Method Ibexa\\\\Search\\\\View\\\\SearchViewProvider\\:\\:getView\\(\\) should return Ibexa\\\\Core\\\\MVC\\\\Symfony\\\\View\\\\View but returns null\\.$#" + message: '#^Method Ibexa\\Search\\View\\SearchViewProvider\:\:getView\(\) should return Ibexa\\Core\\MVC\\Symfony\\View\\View but returns null\.$#' + identifier: return.type count: 1 path: src/lib/View/SearchViewProvider.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Collection\\\\MutableArrayList'' and Ibexa\\Contracts\\Search\\Model\\Suggestion\\ParentLocationCollection will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/contracts/Model/Suggestion/ParentCollectionTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Search\\\\Model\\\\Suggestion\\\\ParentLocationCollection'' and Ibexa\\Contracts\\Search\\Model\\Suggestion\\ParentLocationCollection will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/contracts/Model/Suggestion/ParentCollectionTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Collection\\\\MutableArrayList'' and Ibexa\\Contracts\\Search\\Model\\Suggestion\\SuggestionCollection will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/contracts/Model/Suggestion/SuggestionCollectionTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Search\\\\Model\\\\Suggestion\\\\SuggestionCollection'' and Ibexa\\Contracts\\Search\\Model\\Suggestion\\SuggestionCollection will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/contracts/Model/Suggestion/SuggestionCollectionTest.php + + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Search\\\\Model\\\\Suggestion\\\\Suggestion'' and Ibexa\\Contracts\\Search\\Model\\Suggestion\\Suggestion will always evaluate to true\.$#' + identifier: staticMethod.alreadyNarrowedType + count: 1 + path: tests/contracts/Model/Suggestion/SuggestionTest.php + + - + message: '#^PHPDoc tag @var has invalid value \(\\Symfony\\Contracts\\Translation\\TranslatorInterface&\\PHPUnit\\Framework\\MockObject\\MockObject\)\)\: Unexpected token "\)", expected TOKEN_HORIZONTAL_WS at offset 100 on line 1$#' + identifier: phpDoc.parseError + count: 1 + path: tests/lib/SortingDefinition/Provider/RelevanceSortingDefinitionProviderTest.php