From 8ef9253999863ddb1168ba5110ba26406b5a0e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 7 Dec 2024 20:42:54 +0100 Subject: [PATCH 1/3] Upgrade to PHPStan 2 (#11756) Some calls to assert() are no longer necessary. --- composer.json | 4 +- phpstan-baseline.neon | 3077 ++++++++++++----- phpstan-dbal2.neon | 11 + phpstan-params.neon | 4 - phpstan-persistence2.neon | 2 +- src/Cache/DefaultQueryCache.php | 1 - .../Entity/AbstractEntityPersister.php | 10 +- src/Mapping/ClassMetadataFactory.php | 2 - src/Mapping/DefaultTypedFieldMapper.php | 2 - src/Mapping/Driver/AttributeDriver.php | 8 - .../Command/ClearCache/QueryCommand.php | 9 +- src/Tools/SchemaTool.php | 3 - 12 files changed, 2252 insertions(+), 881 deletions(-) diff --git a/composer.json b/composer.json index 7988d5f17d5..c4de9690eaf 100644 --- a/composer.json +++ b/composer.json @@ -44,8 +44,8 @@ "doctrine/coding-standard": "^9.0.2 || ^12.0", "phpbench/phpbench": "^0.16.10 || ^1.0", "phpstan/extension-installer": "~1.1.0 || ^1.4", - "phpstan/phpstan": "~1.4.10 || 1.12.6", - "phpstan/phpstan-deprecation-rules": "^1", + "phpstan/phpstan": "~1.4.10 || 2.0.3", + "phpstan/phpstan-deprecation-rules": "^1 || ^2", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6", "psr/log": "^1 || ^2 || ^3", "squizlabs/php_codesniffer": "3.7.2", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index cae90074b6f..b5a3abe3551 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,4146 +1,5533 @@ parameters: ignoreErrors: - - message: "#^Method Doctrine\\\\ORM\\\\AbstractQuery\\:\\:getParameter\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\Parameter\\|null but returns Doctrine\\\\ORM\\\\Query\\\\Parameter\\|false\\|null\\.$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Cache\\\\QueryCacheProfile'' and ''setResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 3 + path: src/AbstractQuery.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Cache\\QueryCacheProfile and ''getResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/AbstractQuery.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Cache\\QueryCacheProfile and ''setResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/AbstractQuery.php + + - + message: '#^Expression "\$setCacheEntry\(\$data\)" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: src/AbstractQuery.php - - message: "#^Parameter \\#1 \\$parameters of method Doctrine\\\\ORM\\\\AbstractQuery\\:\\:setParameters\\(\\) expects array\\|Doctrine\\\\Common\\\\Collections\\\\ArrayCollection\\, iterable\\<\\(int\\|string\\), mixed\\> given\\.$#" + message: '#^Expression "\$setCacheEntry\(\$stmt\)" on a separate line does not do anything\.$#' + identifier: expr.resultUnused count: 1 path: src/AbstractQuery.php - - message: "#^Parameter \\#1 \\$stmt of method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:iterate\\(\\) expects Doctrine\\\\DBAL\\\\Driver\\\\ResultStatement\\|Doctrine\\\\DBAL\\\\Result, Doctrine\\\\DBAL\\\\Result\\|int given\\.$#" + message: '#^Method Doctrine\\ORM\\AbstractQuery\:\:getParameter\(\) should return Doctrine\\ORM\\Query\\Parameter\|null but returns Doctrine\\ORM\\Query\\Parameter\|false\|null\.$#' + identifier: return.type count: 1 path: src/AbstractQuery.php - - message: "#^Parameter \\#1 \\$stmt of method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:toIterable\\(\\) expects Doctrine\\\\DBAL\\\\Driver\\\\ResultStatement\\|Doctrine\\\\DBAL\\\\Result, Doctrine\\\\DBAL\\\\Result\\|int given\\.$#" + message: '#^Parameter \#1 \$parameters of method Doctrine\\ORM\\AbstractQuery\:\:setParameters\(\) expects array\\|Doctrine\\Common\\Collections\\ArrayCollection\, iterable\<\(int\|string\), mixed\> given\.$#' + identifier: argument.type count: 1 path: src/AbstractQuery.php - - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, iterable\\<\\(int\\|string\\), mixed\\> given\\.$#" + message: '#^Parameter \#1 \$stmt of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:iterate\(\) expects Doctrine\\DBAL\\Driver\\ResultStatement\|Doctrine\\DBAL\\Result, Doctrine\\DBAL\\Result\|int given\.$#' + identifier: argument.type count: 1 path: src/AbstractQuery.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CacheFactory\\:\\:buildCachedCollectionPersister\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Parameter \#1 \$stmt of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:toIterable\(\) expects Doctrine\\DBAL\\Driver\\ResultStatement\|Doctrine\\DBAL\\Result, Doctrine\\DBAL\\Result\|int given\.$#' + identifier: argument.type + count: 1 + path: src/AbstractQuery.php + + - + message: '#^Parameter \#1 \$value of function count expects array\|Countable, iterable\<\(int\|string\), mixed\> given\.$#' + identifier: argument.type + count: 1 + path: src/AbstractQuery.php + + - + message: '#^Method Doctrine\\ORM\\Cache\\CacheFactory\:\:buildCachedCollectionPersister\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/CacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CacheFactory\\:\\:buildCachedEntityPersister\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CacheFactory\:\:buildCachedEntityPersister\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/CacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CacheFactory\\:\\:buildEntityHydrator\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CacheFactory\:\:buildEntityHydrator\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/CacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CollectionHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$collection with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CollectionHydrator\:\:buildCacheEntry\(\) has parameter \$collection with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/CollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CollectionHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CollectionHydrator\:\:buildCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/CollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CollectionHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CollectionHydrator\:\:loadCacheEntry\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/CollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\CollectionHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\CollectionHydrator\:\:loadCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/CollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCache\\:\\:buildCollectionCacheKey\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCache\:\:buildCollectionCacheKey\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCache\\:\\:buildEntityCacheKey\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCache\:\:buildEntityCacheKey\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCache\\:\\:toIdentifierArray\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCache\:\:toIdentifierArray\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCacheFactory\\:\\:buildCachedCollectionPersister\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Instanceof between Psr\\Cache\\CacheItemPoolInterface and Psr\\Cache\\CacheItemPoolInterface will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/Cache/DefaultCacheFactory.php + + - + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCacheFactory\:\:buildCachedCollectionPersister\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/DefaultCacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCacheFactory\\:\\:buildCachedEntityPersister\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCacheFactory\:\:buildCachedEntityPersister\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCacheFactory\\:\\:buildEntityHydrator\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCacheFactory\:\:buildEntityHydrator\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCacheFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCollectionHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$collection with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCollectionHydrator\:\:buildCacheEntry\(\) has parameter \$collection with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCollectionHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCollectionHydrator\:\:buildCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCollectionHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCollectionHydrator\:\:loadCacheEntry\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCollectionHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultCollectionHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultCollectionHydrator\:\:loadCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultCollectionHydrator.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getCacheRegion\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getCacheRegion\(\)\.$#' + identifier: method.notFound count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultEntityHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultEntityHydrator\:\:buildCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultEntityHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultEntityHydrator\:\:loadCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Offset 'joinColumnFieldNames' does not exist on array\\{cache\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumnFieldNames'' might not exist on array\{cache\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Parameter \\#2 \\$data of class Doctrine\\\\ORM\\\\Cache\\\\EntityCacheEntry constructor expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$data of class Doctrine\\ORM\\Cache\\EntityCacheEntry constructor expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Unable to resolve the template type T in call to method Doctrine\\\\ORM\\\\EntityManagerInterface\\:\\:getReference\\(\\)$#" + message: '#^Unable to resolve the template type T in call to method Doctrine\\ORM\\EntityManagerInterface\:\:getReference\(\)$#' + identifier: argument.templateType count: 1 path: src/Cache/DefaultEntityHydrator.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Cache\\\\CacheEntry\\:\\:\\$class\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Cache\\CacheEntry\:\:\$class\.$#' + identifier: property.notFound count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Cache\\\\CacheEntry\\:\\:resolveAssociationEntries\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Cache\\CacheEntry\:\:resolveAssociationEntries\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getCacheRegion\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getCacheRegion\(\)\.$#' + identifier: method.notFound count: 1 path: src/Cache/DefaultQueryCache.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:storeEntityCache\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:storeEntityCache\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultQueryCache\\:\\:storeAssociationCache\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultQueryCache\:\:storeAssociationCache\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/DefaultQueryCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\DefaultQueryCache\\:\\:storeAssociationCache\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\DefaultQueryCache\:\:storeAssociationCache\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\ORM\\\\EntityManagerInterface\\:\\:getClassMetadata\\(\\) expects string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects string, class\-string\|false given\.$#' + identifier: argument.type count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#1 \\$entityName of method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:getEntityPersister\\(\\) expects class\\-string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#1 \$entityName of method Doctrine\\ORM\\UnitOfWork\:\:getEntityPersister\(\) expects class\-string, class\-string\|false given\.$#' + identifier: argument.type count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#1 \\$entityName of static method Doctrine\\\\ORM\\\\Cache\\\\Exception\\\\NonCacheableEntity\\:\\:fromEntity\\(\\) expects string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#1 \$entityName of static method Doctrine\\ORM\\Cache\\Exception\\NonCacheableEntity\:\:fromEntity\(\) expects string, class\-string\|false given\.$#' + identifier: argument.type count: 1 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#1 \\$result of class Doctrine\\\\ORM\\\\Cache\\\\QueryCacheEntry constructor expects array\\, array\\\\> given\\.$#" + message: '#^Parameter \#1 \$result of class Doctrine\\ORM\\Cache\\QueryCacheEntry constructor expects array\, array\\>\> given\.$#' + identifier: argument.type count: 1 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#2 \\$key of method Doctrine\\\\ORM\\\\Cache\\\\Logging\\\\CacheLogger\\:\\:entityCacheHit\\(\\) expects Doctrine\\\\ORM\\\\Cache\\\\EntityCacheKey, Doctrine\\\\ORM\\\\Cache\\\\CacheKey given\\.$#" + message: '#^Parameter \#2 \$key of method Doctrine\\ORM\\Cache\\Logging\\CacheLogger\:\:entityCacheHit\(\) expects Doctrine\\ORM\\Cache\\EntityCacheKey, Doctrine\\ORM\\Cache\\CacheKey given\.$#' + identifier: argument.type count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Parameter \\#2 \\$key of method Doctrine\\\\ORM\\\\Cache\\\\Logging\\\\CacheLogger\\:\\:entityCacheMiss\\(\\) expects Doctrine\\\\ORM\\\\Cache\\\\EntityCacheKey, Doctrine\\\\ORM\\\\Cache\\\\CacheKey given\\.$#" + message: '#^Parameter \#2 \$key of method Doctrine\\ORM\\Cache\\Logging\\CacheLogger\:\:entityCacheMiss\(\) expects Doctrine\\ORM\\Cache\\EntityCacheKey, Doctrine\\ORM\\Cache\\CacheKey given\.$#' + identifier: argument.type count: 2 path: src/Cache/DefaultQueryCache.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\EntityHydrator\\:\\:buildCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/EntityHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\EntityHydrator\\:\\:loadCacheEntry\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\EntityHydrator\:\:loadCacheEntry\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/EntityHydrator.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Cache\\\\CacheEntry\\:\\:\\$identifiers\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Cache\\CacheEntry\:\:\$identifiers\.$#' + identifier: property.notFound count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" + message: '#^Instanceof between Doctrine\\Common\\Collections\\Collection&iterable and Doctrine\\Common\\Collections\\Collection will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:__construct\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:__construct\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:contains\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:contains\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:containsKey\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:containsKey\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:count\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:count\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:evictCollectionCache\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:evictCollectionCache\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:get\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:get\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:getSourceEntityMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:getSourceEntityMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:getTargetEntityMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:getTargetEntityMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:loadCollectionCache\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:loadCollectionCache\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:loadCriteria\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:loadCriteria\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:slice\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:slice\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:storeCollectionCache\\(\\) has parameter \\$elements with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:storeCollectionCache\(\) has parameter \$elements with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Parameter \\#2 \\$key of method Doctrine\\\\ORM\\\\Cache\\\\EntityHydrator\\:\\:buildCacheEntry\\(\\) expects Doctrine\\\\ORM\\\\Cache\\\\EntityCacheKey, Doctrine\\\\ORM\\\\Cache\\\\CacheKey given\\.$#" + message: '#^Parameter \#1 \$array \(list\\) of array_values is already a list, call has no effect\.$#' + identifier: arrayValues.list count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Parameter \\#3 \\$entry of method Doctrine\\\\ORM\\\\Cache\\\\CollectionHydrator\\:\\:loadCacheEntry\\(\\) expects Doctrine\\\\ORM\\\\Cache\\\\CollectionCacheEntry, Doctrine\\\\ORM\\\\Cache\\\\CacheEntry given\\.$#" + message: '#^Parameter \#2 \$key of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:buildCacheEntry\(\) expects Doctrine\\ORM\\Cache\\EntityCacheKey, Doctrine\\ORM\\Cache\\CacheKey given\.$#' + identifier: argument.type count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Property Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:\\$sourceEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Parameter \#3 \$entry of method Doctrine\\ORM\\Cache\\CollectionHydrator\:\:loadCacheEntry\(\) expects Doctrine\\ORM\\Cache\\CollectionCacheEntry, Doctrine\\ORM\\Cache\\CacheEntry given\.$#' + identifier: argument.type count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Property Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\AbstractCollectionPersister\\:\\:\\$targetEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:\$sourceEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/AbstractCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\CachedCollectionPersister\\:\\:getSourceEntityMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Cache\\Persister\\Collection\\AbstractCollectionPersister\:\:\$targetEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Cache/Persister/Collection/AbstractCollectionPersister.php + + - + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\CachedCollectionPersister\:\:getSourceEntityMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/CachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\CachedCollectionPersister\\:\\:getTargetEntityMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\CachedCollectionPersister\:\:getTargetEntityMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/CachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\CachedCollectionPersister\\:\\:loadCollectionCache\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\CachedCollectionPersister\:\:loadCollectionCache\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/CachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\CachedCollectionPersister\\:\\:storeCollectionCache\\(\\) has parameter \\$elements with generic interface Doctrine\\\\Common\\\\Collections\\\\Collection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\CachedCollectionPersister\:\:storeCollectionCache\(\) has parameter \$elements with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/CachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\NonStrictReadWriteCachedCollectionPersister\\:\\:delete\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\NonStrictReadWriteCachedCollectionPersister\:\:delete\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\NonStrictReadWriteCachedCollectionPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\NonStrictReadWriteCachedCollectionPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\ReadOnlyCachedCollectionPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\ReadOnlyCachedCollectionPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/ReadOnlyCachedCollectionPersister.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Cache\\\\Region\\:\\:lock\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Cache\\Region\:\:lock\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\ReadWriteCachedCollectionPersister\\:\\:__construct\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\ReadWriteCachedCollectionPersister\:\:__construct\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\ReadWriteCachedCollectionPersister\\:\\:delete\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\ReadWriteCachedCollectionPersister\:\:delete\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Collection\\\\ReadWriteCachedCollectionPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Collection\\ReadWriteCachedCollectionPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Cache\\\\CacheEntry\\:\\:\\$class\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Cache\\CacheEntry\:\:\$class\.$#' + identifier: property.notFound count: 2 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\CachedPersister&Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:loadCollectionCache\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Cache\\Persister\\CachedPersister&Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:loadCollectionCache\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\CachedPersister&Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:storeCollectionCache\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Cache\\Persister\\CachedPersister&Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:storeCollectionCache\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:storeEntityCache\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:storeEntityCache\(\)\.$#' + identifier: method.notFound + count: 1 + path: src/Cache/Persister/Entity/AbstractEntityPersister.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\Common\\\\Collections\\\\Criteria'' and ''orderings'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:__construct\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:__construct\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:getManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:getManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:getOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:getOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:getSelectConditionStatementSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:getSelectConditionStatementSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:getSelectSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:getSelectSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:load\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:load\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadAll\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadAll\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadManyToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadOneToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:loadOneToOneEntity\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:loadOneToOneEntity\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Parameter \\#3 \\$entry of method Doctrine\\\\ORM\\\\Cache\\\\EntityHydrator\\:\\:loadCacheEntry\\(\\) expects Doctrine\\\\ORM\\\\Cache\\\\EntityCacheEntry, Doctrine\\\\ORM\\\\Cache\\\\CacheEntry given\\.$#" + message: '#^Parameter \#3 \$entry of method Doctrine\\ORM\\Cache\\EntityHydrator\:\:loadCacheEntry\(\) expects Doctrine\\ORM\\Cache\\EntityCacheEntry, Doctrine\\ORM\\Cache\\CacheEntry given\.$#' + identifier: argument.type count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Property Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\AbstractEntityPersister\\:\\:\\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Cache\\Persister\\Entity\\AbstractEntityPersister\:\:\$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/AbstractEntityPersister.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Cache\\\\Region\\:\\:lock\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Cache\\Region\:\:lock\(\)\.$#' + identifier: method.notFound count: 2 path: src/Cache/Persister/Entity/ReadWriteCachedEntityPersister.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: src/Cache/Persister/Entity/ReadWriteCachedEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Persister\\\\Entity\\\\ReadWriteCachedEntityPersister\\:\\:__construct\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Cache\\Persister\\Entity\\ReadWriteCachedEntityPersister\:\:__construct\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Cache/Persister/Entity/ReadWriteCachedEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Cache\\\\Region\\\\DefaultRegion\\:\\:getCache\\(\\) should return Doctrine\\\\Common\\\\Cache\\\\CacheProvider but returns Doctrine\\\\Common\\\\Cache\\\\Cache\\.$#" + message: '#^Instanceof between Psr\\Cache\\CacheItemPoolInterface and Psr\\Cache\\CacheItemPoolInterface will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/Cache/Region/DefaultRegion.php + + - + message: '#^Method Doctrine\\ORM\\Cache\\Region\\DefaultRegion\:\:getCache\(\) should return Doctrine\\Common\\Cache\\CacheProvider but returns Doctrine\\Common\\Cache\\Cache\.$#' + identifier: return.type count: 1 path: src/Cache/Region/DefaultRegion.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Cache\\\\CacheEntry\\:\\:\\$time\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Cache\\CacheEntry\:\:\$time\.$#' + identifier: property.notFound count: 1 path: src/Cache/TimestampQueryCacheValidator.php - - message: "#^Class Doctrine\\\\Common\\\\Cache\\\\ArrayCache not found\\.$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Configuration'' and ''getResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Configuration.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Configuration'' and ''setResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Configuration.php + + - + message: '#^Class Doctrine\\Common\\Cache\\ArrayCache not found\.$#' + identifier: class.notFound count: 2 path: src/Configuration.php - - message: "#^Method Doctrine\\\\ORM\\\\Configuration\\:\\:getDefaultRepositoryClassName\\(\\) return type with generic class Doctrine\\\\ORM\\\\EntityRepository does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Configuration\:\:getDefaultRepositoryClassName\(\) return type with generic class Doctrine\\ORM\\EntityRepository does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Configuration.php - - message: "#^Method Doctrine\\\\ORM\\\\Configuration\\:\\:setDefaultRepositoryClassName\\(\\) has parameter \\$className with generic class Doctrine\\\\ORM\\\\EntityRepository but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Configuration\:\:setDefaultRepositoryClassName\(\) has parameter \$className with generic class Doctrine\\ORM\\EntityRepository but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Configuration.php - - message: "#^Parameter \\#1 \\$reader of class Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AnnotationDriver constructor expects Doctrine\\\\Common\\\\Annotations\\\\Reader, Doctrine\\\\Common\\\\Annotations\\\\AnnotationReader\\|Doctrine\\\\Common\\\\Annotations\\\\CachedReader\\|Doctrine\\\\Common\\\\Annotations\\\\SimpleAnnotationReader given\\.$#" + message: '#^Parameter \#1 \$reader of class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver constructor expects Doctrine\\Common\\Annotations\\Reader, Doctrine\\Common\\Annotations\\AnnotationReader\|Doctrine\\Common\\Annotations\\CachedReader\|Doctrine\\Common\\Annotations\\SimpleAnnotationReader given\.$#' + identifier: argument.type count: 1 path: src/Configuration.php - - message: "#^Parameter \\#2 \\$className of method Doctrine\\\\ORM\\\\Configuration\\:\\:addCustomNumericFunction\\(\\) expects \\(callable\\(string\\)\\: Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\FunctionNode\\)\\|class\\-string\\, class\\-string given\\.$#" + message: '#^Parameter \#2 \$className of method Doctrine\\ORM\\Configuration\:\:addCustomNumericFunction\(\) expects \(callable\(string\)\: Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode\)\|class\-string\, class\-string given\.$#' + identifier: argument.type count: 1 path: src/Configuration.php - - message: "#^Method Doctrine\\\\ORM\\\\Decorator\\\\EntityManagerDecorator\\:\\:find\\(\\) has parameter \\$lockMode with no type specified\\.$#" + message: '#^Call to function method_exists\(\) with Doctrine\\ORM\\EntityManagerInterface and ''wrapInTransaction'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Decorator/EntityManagerDecorator.php + + - + message: '#^Method Doctrine\\ORM\\Decorator\\EntityManagerDecorator\:\:find\(\) has parameter \$lockMode with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Method Doctrine\\\\ORM\\\\Decorator\\\\EntityManagerDecorator\\:\\:find\\(\\) has parameter \\$lockVersion with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Decorator\\EntityManagerDecorator\:\:find\(\) has parameter \$lockVersion with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Method Doctrine\\\\ORM\\\\Decorator\\\\EntityManagerDecorator\\:\\:flush\\(\\) has parameter \\$entity with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Decorator\\EntityManagerDecorator\:\:flush\(\) has parameter \$entity with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Method Doctrine\\\\ORM\\\\Decorator\\\\EntityManagerDecorator\\:\\:wrapInTransaction\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Decorator\\EntityManagerDecorator\:\:wrapInTransaction\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:find\\(\\) invoked with 4 parameters, 2 required\\.$#" + message: '#^Method Doctrine\\Persistence\\ObjectManager\:\:find\(\) invoked with 4 parameters, 2 required\.$#' + identifier: arguments.count count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:flush\\(\\) invoked with 1 parameter, 0 required\\.$#" + message: '#^Method Doctrine\\Persistence\\ObjectManager\:\:flush\(\) invoked with 1 parameter, 0 required\.$#' + identifier: arguments.count count: 1 path: src/Decorator/EntityManagerDecorator.php - - message: "#^Call to an undefined method object\\:\\:setEntityManager\\(\\)\\.$#" + message: '#^Call to an undefined method object\:\:setEntityManager\(\)\.$#' + identifier: method.notFound count: 1 path: src/EntityManager.php - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" + message: '#^Call to function is_callable\(\) with callable\(\)\: mixed will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:checkLockRequirements\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Call to function is_object\(\) with \*NEVER\* will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:find\\(\\) should return \\(T of object\\)\\|null but returns object\\.$#" + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 5 + path: src/EntityManager.php + + - + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/EntityManager.php + + - + message: '#^Instanceof between Doctrine\\DBAL\\Connection and Doctrine\\DBAL\\Connection will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/EntityManager.php + + - + message: '#^Method Doctrine\\ORM\\EntityManager\:\:checkLockRequirements\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:find\\(\\) should return \\(T of object\\)\\|null but returns object\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:find\(\) should return \(T of object\)\|null but returns object\.$#' + identifier: return.type + count: 1 + path: src/EntityManager.php + + - + message: '#^Method Doctrine\\ORM\\EntityManager\:\:find\(\) should return \(T of object\)\|null but returns object\|null\.$#' + identifier: return.type count: 3 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:getPartialReference\\(\\) should return T\\|null but returns object\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:getPartialReference\(\) should return T\|null but returns object\.$#' + identifier: return.type count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:getPartialReference\\(\\) should return T\\|null but returns object\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:getPartialReference\(\) should return T\|null but returns object\|null\.$#' + identifier: return.type count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:getReference\\(\\) should return T\\|null but returns Doctrine\\\\Common\\\\Proxy\\\\Proxy\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:getReference\(\) should return T\|null but returns Doctrine\\Common\\Proxy\\Proxy\.$#' + identifier: return.type count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:getReference\\(\\) should return T\\|null but returns object\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:getReference\(\) should return T\|null but returns object\|null\.$#' + identifier: return.type count: 2 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:getRepository\\(\\) should return Doctrine\\\\ORM\\\\EntityRepository\\ but returns Doctrine\\\\Persistence\\\\ObjectRepository\\\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:getRepository\(\) should return Doctrine\\ORM\\EntityRepository\ but returns Doctrine\\Persistence\\ObjectRepository\\.$#' + identifier: return.type count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:initializeObject\\(\\) has parameter \\$obj with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:initializeObject\(\) has parameter \$obj with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:isUninitializedObject\\(\\) has parameter \\$obj with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:isUninitializedObject\(\) has parameter \$obj with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityManager\\:\\:wrapInTransaction\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\EntityManager\:\:wrapInTransaction\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/EntityManager.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\Persistence\\\\Mapping\\\\AbstractClassMetadataFactory\\\\:\\:getMetadataFor\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\Persistence\\Mapping\\AbstractClassMetadataFactory\\:\:getMetadataFor\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 2 path: src/EntityManager.php - - message: "#^Parameter \\#1 \\$modeName of method Doctrine\\\\ORM\\\\Configuration\\:\\:getCustomHydrationMode\\(\\) expects string, int\\|string given\\.$#" + message: '#^Parameter \#1 \$modeName of method Doctrine\\ORM\\Configuration\:\:getCustomHydrationMode\(\) expects string, int\|string given\.$#' + identifier: argument.type count: 1 path: src/EntityManager.php - - message: "#^Property Doctrine\\\\ORM\\\\EntityManager\\:\\:\\$metadataFactory \\(Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\) does not accept object\\.$#" + message: '#^Property Doctrine\\ORM\\EntityManager\:\:\$metadataFactory \(Doctrine\\ORM\\Mapping\\ClassMetadataFactory\) does not accept object\.$#' + identifier: assign.propertyType count: 1 path: src/EntityManager.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: src/EntityManager.php - - message: "#^Return type \\(Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\) of method Doctrine\\\\ORM\\\\EntityManager\\:\\:getMetadataFactory\\(\\) should be compatible with return type \\(Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadataFactory\\\\>\\) of method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:getMetadataFactory\\(\\)$#" + message: '#^Return type \(Doctrine\\ORM\\Mapping\\ClassMetadataFactory\) of method Doctrine\\ORM\\EntityManager\:\:getMetadataFactory\(\) should be compatible with return type \(Doctrine\\Persistence\\Mapping\\ClassMetadataFactory\\>\) of method Doctrine\\Persistence\\ObjectManager\:\:getMetadataFactory\(\)$#' + identifier: method.childReturnType count: 2 path: src/EntityManager.php - - message: "#^Unable to resolve the template type T in call to method Doctrine\\\\ORM\\\\EntityManager\\:\\:find\\(\\)$#" + message: '#^Unable to resolve the template type T in call to method Doctrine\\ORM\\EntityManager\:\:find\(\)$#' + identifier: argument.templateType count: 1 path: src/EntityManager.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityRepository\\:\\:findOneBy\\(\\) should return \\(T of object\\)\\|null but returns object\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\EntityRepository\:\:findOneBy\(\) should return \(T of object\)\|null but returns object\|null\.$#' + identifier: return.type count: 1 path: src/EntityRepository.php - - message: "#^Method Doctrine\\\\ORM\\\\EntityRepository\\:\\:matching\\(\\) should return Doctrine\\\\Common\\\\Collections\\\\AbstractLazyCollection\\&Doctrine\\\\Common\\\\Collections\\\\Selectable\\ but returns Doctrine\\\\ORM\\\\LazyCriteriaCollection\\<\\(int\\|string\\), object\\>\\.$#" + message: '#^Method Doctrine\\ORM\\EntityRepository\:\:matching\(\) should return Doctrine\\Common\\Collections\\AbstractLazyCollection\&Doctrine\\Common\\Collections\\Selectable\ but returns Doctrine\\ORM\\LazyCriteriaCollection\<\(int\|string\), object\>\.$#' + identifier: return.type count: 1 path: src/EntityRepository.php - - message: "#^Method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:find\\(\\) invoked with 4 parameters, 2 required\\.$#" + message: '#^Method Doctrine\\Persistence\\ObjectManager\:\:find\(\) invoked with 4 parameters, 2 required\.$#' + identifier: arguments.count count: 1 path: src/EntityRepository.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\ListenersInvoker\\:\\:getSubscribedSystems\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Event\\ListenersInvoker\:\:getSubscribedSystems\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Event/ListenersInvoker.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\ListenersInvoker\\:\\:invoke\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Event\\ListenersInvoker\:\:invoke\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Event/ListenersInvoker.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\OnClassMetadataNotFoundEventArgs\\:\\:getFoundMetadata\\(\\) return type with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Event\\OnClassMetadataNotFoundEventArgs\:\:getFoundMetadata\(\) return type with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Event/OnClassMetadataNotFoundEventArgs.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\OnClassMetadataNotFoundEventArgs\\:\\:setFoundMetadata\\(\\) has parameter \\$classMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Event\\OnClassMetadataNotFoundEventArgs\:\:setFoundMetadata\(\) has parameter \$classMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Event/OnClassMetadataNotFoundEventArgs.php - - message: "#^Property Doctrine\\\\ORM\\\\Event\\\\OnClassMetadataNotFoundEventArgs\\:\\:\\$foundMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Event\\OnClassMetadataNotFoundEventArgs\:\:\$foundMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Event/OnClassMetadataNotFoundEventArgs.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\PreUpdateEventArgs\\:\\:__construct\\(\\) has parameter \\$changeSet with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Event\\PreUpdateEventArgs\:\:__construct\(\) has parameter \$changeSet with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Event/PreUpdateEventArgs.php - - message: "#^Method Doctrine\\\\ORM\\\\Event\\\\PreUpdateEventArgs\\:\\:getEntityChangeSet\\(\\) return type with generic class Doctrine\\\\ORM\\\\PersistentCollection does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Event\\PreUpdateEventArgs\:\:getEntityChangeSet\(\) return type with generic class Doctrine\\ORM\\PersistentCollection does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Event/PreUpdateEventArgs.php - - message: "#^Property Doctrine\\\\ORM\\\\Event\\\\PreUpdateEventArgs\\:\\:\\$entityChangeSet with generic class Doctrine\\\\ORM\\\\PersistentCollection does not specify its types\\: TKey, T$#" + message: '#^Property Doctrine\\ORM\\Event\\PreUpdateEventArgs\:\:\$entityChangeSet with generic class Doctrine\\ORM\\PersistentCollection does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Event/PreUpdateEventArgs.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\ORM\\\\EntityManagerInterface\\:\\:getClassMetadata\\(\\) expects string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects string, class\-string\|false given\.$#' + identifier: argument.type count: 1 path: src/Id/AssignedGenerator.php - - message: "#^Call to an undefined method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:getTableHiLoCurrentValSql\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getTableHiLoCurrentValSql\(\)\.$#' + identifier: method.notFound count: 1 path: src/Id/TableGenerator.php - - message: "#^Call to an undefined method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:getTableHiLoUpdateNextValSql\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\DBAL\\Platforms\\AbstractPlatform\:\:getTableHiLoUpdateNextValSql\(\)\.$#' + identifier: method.notFound count: 1 path: src/Id/TableGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:gatherRowData\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Instanceof between Doctrine\\DBAL\\Driver\\ResultStatement and Doctrine\\DBAL\\Driver\\ResultStatement will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 2 + path: src/Internal/Hydration/AbstractHydrator.php + + - + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 3 path: src/Internal/Hydration/AbstractHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/AbstractHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:getDiscriminatorValues\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:getDiscriminatorValues\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/AbstractHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:registerManaged\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:registerManaged\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/AbstractHydrator.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Internal/Hydration/AbstractHydrator.php - - message: "#^Offset 'args' does not exist on array\\{class\\: mixed, args\\?\\: array\\}\\.$#" + message: '#^Parameter &\$id by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\, array\ given\.$#' + identifier: parameterByRef.type + count: 1 + path: src/Internal/Hydration/AbstractHydrator.php + + - + message: '#^Parameter &\$nonemptyComponents by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\, array\ given\.$#' + identifier: parameterByRef.type + count: 1 + path: src/Internal/Hydration/AbstractHydrator.php + + - + message: '#^Offset ''args'' might not exist on array\{class\: mixed, args\?\: array\}\.$#' + identifier: offsetAccess.notFound + count: 1 + path: src/Internal/Hydration/ArrayHydrator.php + + - + message: '#^Parameter &\$result by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\ArrayHydrator\:\:hydrateRowData\(\) expects array\, array\\|null given\.$#' + identifier: parameterByRef.type count: 1 path: src/Internal/Hydration/ArrayHydrator.php - - message: "#^Class Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\IterableResult implements generic interface Iterator but does not specify its types\\: TKey, TValue$#" + message: '#^Class Doctrine\\ORM\\Internal\\Hydration\\IterableResult implements generic interface Iterator but does not specify its types\: TKey, TValue$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/IterableResult.php - - message: "#^Property Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\IterableResult\\:\\:\\$current \\(array\\|null\\) does not accept array\\|false\\.$#" + message: '#^Property Doctrine\\ORM\\Internal\\Hydration\\IterableResult\:\:\$current \(array\\|null\) does not accept array\\|false\.$#' + identifier: assign.propertyType count: 2 path: src/Internal/Hydration/IterableResult.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\ObjectHydrator\\:\\:initRelatedCollection\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Strict comparison using \!\=\= between array\\|null and false will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/Internal/Hydration/IterableResult.php + + - + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\ObjectHydrator\:\:initRelatedCollection\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/ObjectHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\ObjectHydrator\\:\\:initRelatedCollection\\(\\) return type with generic class Doctrine\\\\ORM\\\\PersistentCollection does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Internal\\Hydration\\ObjectHydrator\:\:initRelatedCollection\(\) return type with generic class Doctrine\\ORM\\PersistentCollection does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/ObjectHydrator.php - - message: "#^Offset 'args' does not exist on array\\{class\\: mixed, args\\?\\: array\\}\\.$#" + message: '#^Offset ''args'' might not exist on array\{class\: mixed, args\?\: array\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Internal/Hydration/ObjectHydrator.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Internal/Hydration/ObjectHydrator.php - - message: "#^Property Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\ObjectHydrator\\:\\:\\$uninitializedCollections with generic class Doctrine\\\\ORM\\\\PersistentCollection does not specify its types\\: TKey, T$#" + message: '#^Property Doctrine\\ORM\\Internal\\Hydration\\ObjectHydrator\:\:\$uninitializedCollections with generic class Doctrine\\ORM\\PersistentCollection does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/ObjectHydrator.php - - message: "#^Property Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\SimpleObjectHydrator\\:\\:\\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHydrator\:\:\$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/Hydration/SimpleObjectHydrator.php - - message: "#^Method Doctrine\\\\ORM\\\\Internal\\\\HydrationCompleteHandler\\:\\:deferPostLoadInvoking\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Internal\\HydrationCompleteHandler\:\:deferPostLoadInvoking\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Internal/HydrationCompleteHandler.php - - message: "#^Property Doctrine\\\\ORM\\\\Internal\\\\StronglyConnectedComponents\\:\\:\\$representingNodes \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Internal\\StronglyConnectedComponents\:\:\$representingNodes \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Internal/StronglyConnectedComponents.php - - message: "#^Property Doctrine\\\\ORM\\\\Internal\\\\StronglyConnectedComponents\\:\\:\\$states \\(array\\\\) does not accept non\\-empty\\-array\\<''\\|int, 1\\|2\\|3\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Internal\\StronglyConnectedComponents\:\:\$states \(array\\) does not accept non\-empty\-array\<''''\|int, 1\|2\|3\>\.$#' + identifier: assign.propertyType count: 1 path: src/Internal/StronglyConnectedComponents.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getColumnAlias\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getColumnAlias\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getIdentifierColumnNames\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getIdentifierColumnNames\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getJoinTableName\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getJoinTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getReferencedJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getReferencedJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getSequenceName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getSequenceName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\AnsiQuoteStrategy\\:\\:getTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy\:\:getTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Mapping/AnsiQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Builder\\\\ClassMetadataBuilder\\:\\:__construct\\(\\) has parameter \\$cm with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/AssociationOverrides.php + + - + message: '#^Instanceof between Doctrine\\ORM\\Mapping\\AssociationOverride and Doctrine\\ORM\\Mapping\\AssociationOverride will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/Mapping/AssociationOverrides.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/AttributeOverrides.php + + - + message: '#^Instanceof between Doctrine\\ORM\\Mapping\\AttributeOverride and Doctrine\\ORM\\Mapping\\AttributeOverride will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/Mapping/AttributeOverrides.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\Builder\\ClassMetadataBuilder\:\:__construct\(\) has parameter \$cm with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Builder/ClassMetadataBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Builder\\\\ClassMetadataBuilder\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Builder\\ClassMetadataBuilder\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Builder/ClassMetadataBuilder.php - - message: "#^Parameter \\#1 \\$repositoryClassName of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setCustomRepositoryClass\\(\\) expects class\\-string\\\\|null, string given\\.$#" + message: '#^Parameter \#1 \$repositoryClassName of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setCustomRepositoryClass\(\) expects class\-string\\|null, string given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Builder/ClassMetadataBuilder.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\Builder\\\\ClassMetadataBuilder\\:\\:\\$cm with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\Builder\\ClassMetadataBuilder\:\:\$cm with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Builder/ClassMetadataBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Builder\\\\EntityListenerBuilder\\:\\:bindEntityListener\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Builder\\EntityListenerBuilder\:\:bindEntityListener\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Builder/EntityListenerBuilder.php - - message: "#^If condition is always true\\.$#" + message: '#^Class Doctrine\\ORM\\Mapping\\ClassMetadata has type alias AssociationMapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 5 + path: src/Mapping/ClassMetadata.php + + - + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 2 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addDefaultDiscriminatorMap\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addDefaultDiscriminatorMap\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedEmbeddedClasses\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedEmbeddedClasses\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedEmbeddedClasses\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedEmbeddedClasses\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedFields\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedFields\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedFields\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedFields\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedIndexes\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedIndexes\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedIndexes\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedIndexes\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedNamedNativeQueries\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedNamedNativeQueries\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedNamedNativeQueries\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedNamedNativeQueries\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedNamedQueries\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedNamedQueries\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedNamedQueries\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedNamedQueries\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedRelations\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedRelations\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedRelations\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedRelations\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedSqlResultSetMappings\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedSqlResultSetMappings\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addInheritedSqlResultSetMappings\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addInheritedSqlResultSetMappings\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addMappingInheritanceInformation\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addMappingInheritanceInformation\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addMappingInheritanceInformation\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addMappingInheritanceInformation\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Mapping/ClassMetadataFactory.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addNestedEmbeddedClasses\(\) has parameter \$parentClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Mapping/ClassMetadataFactory.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:addNestedEmbeddedClasses\(\) has parameter \$subClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addNestedEmbeddedClasses\\(\\) has parameter \\$parentClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:completeIdGeneratorMapping\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:addNestedEmbeddedClasses\\(\\) has parameter \\$subClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:doLoadMetadata\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:completeIdGeneratorMapping\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:doLoadMetadata\(\) has parameter \$parent with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:doLoadMetadata\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:findAbstractEntityClassesNotListedInDiscriminatorMap\(\) has parameter \$rootEntityClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:doLoadMetadata\\(\\) has parameter \\$parent with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:getFqcnFromAlias\(\) has parameter \$namespaceAlias with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:findAbstractEntityClassesNotListedInDiscriminatorMap\\(\\) has parameter \\$rootEntityClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:getFqcnFromAlias\(\) has parameter \$simpleClassName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:getFqcnFromAlias\\(\\) has parameter \\$namespaceAlias with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:inheritIdGeneratorMapping\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:getFqcnFromAlias\\(\\) has parameter \\$simpleClassName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:inheritIdGeneratorMapping\(\) has parameter \$parent with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:inheritIdGeneratorMapping\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:initializeReflection\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:inheritIdGeneratorMapping\\(\\) has parameter \\$parent with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:isEntity\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:initializeReflection\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:newClassMetadataInstance\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:isEntity\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:onNotFoundMetadata\(\) has parameter \$className with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:newClassMetadataInstance\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:onNotFoundMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:onNotFoundMetadata\\(\\) has parameter \\$className with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:validateRuntimeMetadata\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:onNotFoundMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:validateRuntimeMetadata\(\) has parameter \$parent with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:validateRuntimeMetadata\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataFactory\:\:wakeupReflection\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:validateRuntimeMetadata\\(\\) has parameter \\$parent with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Parameter \#1 \$fieldMapping of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:addInheritedFieldMapping\(\) expects array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}, array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\|array\{class\: class\-string, columnPrefix\: string\|null, declaredField\: string\|null, originalField\: string\|null, inherited\?\: class\-string, declared\?\: class\-string\}\|array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\} given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataFactory\\:\\:wakeupReflection\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Parameter \#1 \$generator of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setIdGenerator\(\) expects Doctrine\\ORM\\Id\\AbstractIdGenerator, object given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Parameter \\#1 \\$generator of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setIdGenerator\\(\\) expects Doctrine\\\\ORM\\\\Id\\\\AbstractIdGenerator, object given\\.$#" + message: '#^Parameter \#1 \$mapping of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:addInheritedAssociationMapping\(\) expects array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}, array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\|array\{class\: class\-string, columnPrefix\: string\|null, declaredField\: string\|null, originalField\: string\|null, inherited\?\: class\-string, declared\?\: class\-string, sourceEntity\?\: class\-string\\}\|array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\} given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Parameter \\#2 \\$class of method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getSequenceName\\(\\) expects Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata, Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo given\\.$#" + message: '#^Parameter \#2 \$class of method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getSequenceName\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\ORM\\Mapping\\ClassMetadataInfo given\.$#' + identifier: argument.type count: 2 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Parameter \\#5 \\.\\.\\.\\$args of static method Doctrine\\\\Deprecations\\\\Deprecation\\:\\:trigger\\(\\) expects float\\|int\\|string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#5 \.\.\.\$args of static method Doctrine\\Deprecations\\Deprecation\:\:trigger\(\) expects float\|int\|string, class\-string\|false given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ClassMetadataFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_storeAssociationMapping\\(\\) has parameter \\$assocMapping with no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$embeddedClasses \(array\\) does not accept non\-empty\-array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\|array\{class\: class\-string, columnPrefix\: string\|null, declaredField\: string\|null, originalField\: string\|null, inherited\?\: class\-string, declared\?\: class\-string\}\|array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}\>\.$#' + identifier: assign.propertyType + count: 1 + path: src/Mapping/ClassMetadataFactory.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_storeAssociationMapping\(\) has parameter \$assocMapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_validateAndCompleteAssociationMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_validateAndCompleteAssociationMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_validateAndCompleteAssociationMapping\\(\\) should return array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\} but returns non\\-empty\\-array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_validateAndCompleteAssociationMapping\(\) should return array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\} but returns non\-empty\-array\.$#' + identifier: return.type count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_validateAndCompleteManyToManyMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_validateAndCompleteManyToManyMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_validateAndCompleteOneToManyMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_validateAndCompleteOneToManyMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:_validateAndCompleteOneToOneMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:_validateAndCompleteOneToOneMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:addInheritedAssociationMapping\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:addInheritedAssociationMapping\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:assertMappingOrderBy\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:assertMappingOrderBy\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:getAssociationMappedByTargetField\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getAssociationMappedByTargetField\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:getAssociationMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getAssociationMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:getAssociationMappings\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getAssociationMappings\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:getSqlResultSetMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getIdentifierColumnNames\(\) should return list\ but returns array\\.$#' + identifier: return.type + count: 1 + path: src/Mapping/ClassMetadataInfo.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getQuotedIdentifierColumnNames\(\) should return list\ but returns array\\.$#' + identifier: return.type + count: 1 + path: src/Mapping/ClassMetadataInfo.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getSqlResultSetMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:getSqlResultSetMappings\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getSqlResultSetMappings\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:hasAssociation\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:hasAssociation\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:hasField\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:hasField\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:inlineEmbeddable\\(\\) has parameter \\$embeddable with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:inlineEmbeddable\(\) has parameter \$embeddable with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:isAssociationInverseSide\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:isAssociationInverseSide\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:isCollectionValuedAssociation\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:isCollectionValuedAssociation\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:isSingleValuedAssociation\\(\\) has parameter \\$fieldName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:isSingleValuedAssociation\(\) has parameter \$fieldName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:setCustomRepositoryClass\\(\\) has parameter \\$repositoryClassName with generic class Doctrine\\\\ORM\\\\EntityRepository but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:setCustomRepositoryClass\(\) has parameter \$repositoryClassName with generic class Doctrine\\ORM\\EntityRepository but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:validateAndCompleteFieldMapping\\(\\) should return array\\{type\\: string, fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\} but returns array\\{fieldName\\: string, columnName\\: string, id\\?\\: bool, generated\\?\\: int, enumType\\?\\: class\\-string, type\\: string, quoted\\?\\: true, requireSQLConversion\\?\\: true\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:validateAndCompleteFieldMapping\(\) should return array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\} but returns array\{fieldName\: string, columnName\: string, id\?\: bool, generated\?\: int, enumType\?\: class\-string, type\: string, quoted\?\: true, requireSQLConversion\?\: true\}\.$#' + identifier: return.type count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\NamingStrategy\\:\\:joinColumnName\\(\\) invoked with 2 parameters, 1 required\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\NamingStrategy\:\:joinColumnName\(\) invoked with 2 parameters, 1 required\.$#' + identifier: arguments.count count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Offset 'originalClass' does not exist on array\\{type\\: string, fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''originalClass'' might not exist on array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Offset 'originalField' does not exist on array\\{type\\: string, fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''originalField'' might not exist on array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Parameter \\#1 \\$class of method Doctrine\\\\Persistence\\\\Mapping\\\\ReflectionService\\:\\:getAccessibleProperty\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$array \(list\\) of array_values is already a list, call has no effect\.$#' + identifier: arrayValues.list count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Parameter \\#1 \\$mapping of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:validateAndCompleteTypedAssociationMapping\\(\\) expects array\\{type\\: 1\\|2\\|4\\|8, fieldName\\: string, targetEntity\\?\\: class\\-string\\}, non\\-empty\\-array\\ given\\.$#" + message: '#^Parameter \#1 \$class of method Doctrine\\Persistence\\Mapping\\ReflectionService\:\:getAccessibleProperty\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:\\$associationMappings type has no value type specified in iterable type array\\.$#" + message: '#^Parameter \#1 \$mapping of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:validateAndCompleteTypedAssociationMapping\(\) expects array\{type\: 1\|2\|4\|8, fieldName\: string, targetEntity\?\: class\-string\}, non\-empty\-array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Mapping/ClassMetadataInfo.php + + - + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:\$associationMappings type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:\\$customRepositoryClassName with generic class Doctrine\\\\ORM\\\\EntityRepository does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:\$customRepositoryClassName with generic class Doctrine\\ORM\\EntityRepository does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:\\$reflClass with generic class ReflectionClass does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:\$reflClass with generic class ReflectionClass does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\:\\:\\$table type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:\$table type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 2 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$associationMappings \\(array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\>\\) does not accept non\\-empty\\-array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$associationMappings \(array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\>\) does not accept non\-empty\-array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\>\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$customRepositoryClassName \\(class\\-string\\\\|null\\) does not accept string\\|null\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$customRepositoryClassName \(class\-string\\|null\) does not accept string\|null\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$discriminatorMap \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$discriminatorMap \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$embeddedClasses \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$embeddedClasses \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$entityListeners \\(array\\\\>\\) does not accept non\\-empty\\-array\\\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$entityListeners \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$namedNativeQueries \\(array\\\\>\\) does not accept array\\\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$namedNativeQueries \(array\\>\) does not accept array\\>\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$namedQueries \\(array\\\\>\\) does not accept array\\\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$namedQueries \(array\\>\) does not accept array\\>\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$sqlResultSetMappings \\(array\\\\) does not accept non\\-empty\\-array\\\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$sqlResultSetMappings \(array\, columns\: array\\}\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$subClasses \\(array\\\\) does not accept array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$subClasses \(list\\) does not accept non\-empty\-list\\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: src/Mapping/ClassMetadataInfo.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\DefaultEntityListenerResolver\\:\\:\\$instances \\(array\\\\) does not accept array\\\\.$#" + message: '#^Strict comparison using \!\=\= between array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\} and false will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 2 + path: src/Mapping/ClassMetadataInfo.php + + - + message: '#^Template type T is declared as covariant, but occurs in invariant position in property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:\$name\.$#' + identifier: generics.variance + count: 1 + path: src/Mapping/ClassMetadataInfo.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 8 + path: src/Mapping/Column.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Mapping/DefaultEntityListenerResolver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getColumnAlias\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\DefaultEntityListenerResolver\:\:\$instances \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 - path: src/Mapping/DefaultQuoteStrategy.php + path: src/Mapping/DefaultEntityListenerResolver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getColumnAlias\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getIdentifierColumnNames\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getIdentifierColumnNames\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" - count: 5 + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getIdentifierColumnNames\(\) should return list\ but returns array\\.$#' + identifier: return.type + count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getReferencedJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" - count: 1 + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getJoinTableName\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 5 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getSequenceName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getJoinTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\DefaultQuoteStrategy\\:\\:getTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getReferencedJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getSequenceName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy\:\:getTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Access to an undefined property object\\:\\:\\$region\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 - path: src/Mapping/Driver/AnnotationDriver.php + path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Access to an undefined property object\\:\\:\\$usage\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 - path: src/Mapping/Driver/AnnotationDriver.php + path: src/Mapping/DefaultQuoteStrategy.php - - message: "#^Access to an undefined property object\\:\\:\\$value\\.$#" - count: 3 - path: src/Mapping/Driver/AnnotationDriver.php + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 2 + path: src/Mapping/DiscriminatorColumn.php - - message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:mapEmbedded\\(\\)\\.$#" + message: '#^Access to an undefined property object\:\:\$region\.$#' + identifier: property.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:mapManyToMany\\(\\)\\.$#" + message: '#^Access to an undefined property object\:\:\$usage\.$#' + identifier: property.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:mapManyToOne\\(\\)\\.$#" - count: 1 + message: '#^Access to an undefined property object\:\:\$value\.$#' + identifier: property.notFound + count: 3 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:mapOneToMany\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:mapEmbedded\(\)\.$#' + identifier: method.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:mapOneToOne\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:mapManyToMany\(\)\.$#' + identifier: method.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + message: '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:mapManyToOne\(\)\.$#' + identifier: method.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AnnotationDriver\\:\\:columnToArray\\(\\) should return array\\{fieldName\\: string, type\\: mixed, scale\\: int, length\\: int, unique\\: bool, nullable\\: bool, precision\\: int, notInsertable\\?\\: bool, \\.\\.\\.\\} but returns array\\{fieldName\\: string, type\\: mixed, scale\\: int\\|null, length\\: int\\|null, unique\\: bool, nullable\\: bool, precision\\: int\\|null, notInsertable\\?\\: true, \\.\\.\\.\\}\\.$#" + message: '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:mapOneToMany\(\)\.$#' + identifier: method.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AnnotationDriver\\:\\:isRepeatedPropertyDeclaration\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Call to an undefined method Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:mapOneToOne\(\)\.$#' + identifier: method.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AnnotationDriver\\:\\:loadRelationShipMapping\\(\\) has parameter \\$metadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Expression on left side of \?\? is not nullable\.$#' + identifier: nullCoalesce.expr count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Offset 'indexes' does not exist on array\\{name\\: string\\|null, schema\\: string\\|null, indexes\\?\\: non\\-empty\\-array\\<0\\|non\\-falsy\\-string, array\\{columns\\?\\: non\\-empty\\-array\\, fields\\?\\: non\\-empty\\-array\\, flags\\?\\: non\\-empty\\-array\\, options\\?\\: non\\-empty\\-array\\\\}&non\\-empty\\-array\\>\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:\:isRepeatedPropertyDeclaration\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Offset 'uniqueConstraints' does not exist on array\\{name\\: string\\|null, schema\\: string\\|null, indexes\\?\\: non\\-empty\\-array\\<0\\|non\\-falsy\\-string, array\\{columns\\?\\: non\\-empty\\-array\\, fields\\?\\: non\\-empty\\-array\\, flags\\?\\: non\\-empty\\-array\\, options\\?\\: non\\-empty\\-array\\\\}&non\\-empty\\-array\\>, uniqueConstraints\\?\\: non\\-empty\\-array\\<0\\|non\\-falsy\\-string, array\\{columns\\?\\: non\\-empty\\-array\\, fields\\?\\: non\\-empty\\-array\\, options\\?\\: non\\-empty\\-array\\\\}&non\\-empty\\-array\\>\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:\:loadRelationShipMapping\(\) has parameter \$metadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Parameter \\#1 \\$definition of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setSequenceGeneratorDefinition\\(\\) expects array\\{sequenceName\\?\\: string, allocationSize\\?\\: int\\|string, initialValue\\?\\: int\\|string, quoted\\?\\: mixed\\}, array\\{sequenceName\\: string\\|null, allocationSize\\: int, initialValue\\: int\\} given\\.$#" + message: '#^Offset ''indexes'' might not exist on array\{name\: string\|null, schema\: string\|null, indexes\?\: non\-empty\-array\<0\|non\-falsy\-string, non\-empty\-array\{columns\?\: non\-empty\-array\, fields\?\: non\-empty\-array\, flags\?\: non\-empty\-array\, options\?\: non\-empty\-array\\}\>\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Expression on left side of \\?\\? is not nullable\\.$#" + message: '#^Offset ''uniqueConstraints'' might not exist on array\{name\: string\|null, schema\: string\|null, indexes\?\: non\-empty\-array\<0\|non\-falsy\-string, non\-empty\-array\{columns\?\: non\-empty\-array\, fields\?\: non\-empty\-array\, flags\?\: non\-empty\-array\, options\?\: non\-empty\-array\\}\>, uniqueConstraints\?\: non\-empty\-array\<0\|non\-falsy\-string, non\-empty\-array\{columns\?\: non\-empty\-array\, fields\?\: non\-empty\-array\, options\?\: non\-empty\-array\\}\>\}\.$#' + identifier: offsetAccess.notFound count: 1 - path: src/Mapping/Driver/AttributeDriver.php + path: src/Mapping/Driver/AnnotationDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AttributeDriver\\:\\:columnToArray\\(\\) should return array\\{fieldName\\: string, type\\: mixed, scale\\: int, length\\: int, unique\\: bool, nullable\\: bool, precision\\: int, enumType\\?\\: class\\-string, \\.\\.\\.\\} but returns array\\{fieldName\\: string, type\\: mixed, scale\\: int\\|null, length\\: int\\|null, unique\\: bool, nullable\\: bool, precision\\: int\\|null, options\\?\\: non\\-empty\\-array\\, \\.\\.\\.\\}\\.$#" + message: '#^Expression on left side of \?\? is not nullable\.$#' + identifier: nullCoalesce.expr count: 1 path: src/Mapping/Driver/AttributeDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\AttributeDriver\\:\\:isRepeatedPropertyDeclaration\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\AttributeDriver\:\:isRepeatedPropertyDeclaration\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/AttributeDriver.php - - message: "#^Parameter \\#1 \\$columnDef of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setDiscriminatorColumn\\(\\) expects array\\{name\\: string\\|null, fieldName\\?\\: string, type\\?\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|null, array\\{name\\: string\\|null, type\\: string, length\\: int, columnDefinition\\: string\\|null, enumType\\: string\\|null, options\\?\\: array\\} given\\.$#" + message: '#^Parameter \#1 \$columnDef of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setDiscriminatorColumn\(\) expects array\{name\: string\|null, fieldName\?\: string, type\?\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|null, array\{name\: string\|null, type\: string, length\: int, columnDefinition\: string\|null, enumType\: string\|null, options\?\: array\} given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/AttributeDriver.php - - message: "#^Parameter \\#1 \\$definition of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setSequenceGeneratorDefinition\\(\\) expects array\\{sequenceName\\?\\: string, allocationSize\\?\\: int\\|string, initialValue\\?\\: int\\|string, quoted\\?\\: mixed\\}, array\\{sequenceName\\: string\\|null, allocationSize\\: int, initialValue\\: int\\} given\\.$#" + message: '#^Cannot call method getName\(\) on Doctrine\\DBAL\\Schema\\Column\|false\.$#' + identifier: method.nonObject count: 1 - path: src/Mapping/Driver/AttributeDriver.php + path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Cannot call method getName\\(\\) on Doctrine\\\\DBAL\\\\Schema\\\\Column\\|false\\.$#" + message: '#^Instanceof between Doctrine\\ORM\\Mapping\\ClassMetadata\ and Doctrine\\ORM\\Mapping\\ClassMetadata will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:__construct\\(\\) has parameter \\$schemaManager with generic class Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:__construct\(\) has parameter \$schemaManager with generic class Doctrine\\DBAL\\Schema\\AbstractSchemaManager but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:buildFieldMappings\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:buildFieldMappings\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:buildIndexes\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:buildIndexes\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:buildToOneAssociationMappings\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:buildToOneAssociationMappings\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:getClassNameForTable\\(\\) should return class\\-string but returns string\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:getClassNameForTable\(\) should return class\-string but returns string\.$#' + identifier: return.type count: 2 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Parameter \\#2 \\$columnName of method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:getFieldNameForColumn\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$columnName of method Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:getFieldNameForColumn\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 4 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Parameter \\#4 \\.\\.\\.\\$args of static method Doctrine\\\\Deprecations\\\\Deprecation\\:\\:trigger\\(\\) expects float\\|int\\|string, false given\\.$#" + message: '#^Parameter \#4 \.\.\.\$args of static method Doctrine\\Deprecations\\Deprecation\:\:trigger\(\) expects float\|int\|string, false given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\DatabaseDriver\\:\\:\\$sm with generic class Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\Driver\\DatabaseDriver\:\:\$sm with generic class Doctrine\\DBAL\\Schema\\AbstractSchemaManager does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Driver/DatabaseDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\SimplifiedXmlDriver\\:\\:__construct\\(\\) has parameter \\$fileExtension with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\SimplifiedXmlDriver\:\:__construct\(\) has parameter \$fileExtension with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/SimplifiedXmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\SimplifiedXmlDriver\\:\\:__construct\\(\\) has parameter \\$prefixes with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\SimplifiedXmlDriver\:\:__construct\(\) has parameter \$prefixes with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/SimplifiedXmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\SimplifiedYamlDriver\\:\\:__construct\\(\\) has parameter \\$fileExtension with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\SimplifiedYamlDriver\:\:__construct\(\) has parameter \$fileExtension with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/SimplifiedYamlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\SimplifiedYamlDriver\\:\\:__construct\\(\\) has parameter \\$prefixes with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\SimplifiedYamlDriver\:\:__construct\(\) has parameter \$prefixes with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/SimplifiedYamlDriver.php - - message: "#^Empty array passed to foreach\\.$#" + message: '#^Empty array passed to foreach\.$#' + identifier: foreach.emptyArray count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\XmlDriver\\:\\:__construct\\(\\) has parameter \\$fileExtension with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\XmlDriver\:\:__construct\(\) has parameter \$fileExtension with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\XmlDriver\\:\\:cacheToArray\\(\\) should return array\\{usage\\: int\\|null, region\\?\\: string\\} but returns array\\{usage\\: ''\\|'0'\\|int\\|null, region\\: string\\|null\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\XmlDriver\:\:cacheToArray\(\) should return array\{usage\: int\|null, region\?\: string\} but returns array\{usage\: ''''\|''0''\|int\|null, region\: string\|null\}\.$#' + identifier: return.type count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\XmlDriver\\:\\:columnToArray\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\XmlDriver\:\:columnToArray\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Offset 'version' on \\*NEVER\\* in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''version'' on \*NEVER\* in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Parameter \\#1 \\$columnDef of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setDiscriminatorColumn\\(\\) expects array\\{name\\: string\\|null, fieldName\\?\\: string, type\\?\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|null, array\\{name\\: string\\|null, type\\: string, length\\: int, columnDefinition\\: string\\|null, enumType\\: string\\|null, options\\?\\: array\\\\|bool\\|string\\>\\} given\\.$#" + message: '#^Parameter \#1 \$columnDef of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setDiscriminatorColumn\(\) expects array\{name\: string\|null, fieldName\?\: string, type\?\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|null, array\{name\: string\|null, type\: string, length\: int, columnDefinition\: string\|null, enumType\: string\|null, options\?\: array\\|bool\|string\>\} given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Parameter \\#1 \\$data of function simplexml_load_string expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$data of function simplexml_load_string expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Parameter \\#1 \\$repositoryClassName of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setCustomRepositoryClass\\(\\) expects class\\-string\\\\|null, string given\\.$#" + message: '#^Parameter \#1 \$repositoryClassName of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setCustomRepositoryClass\(\) expects class\-string\\|null, string given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Parameter \\#1 \\$repositoryClassName of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setCustomRepositoryClass\\(\\) expects class\\-string\\\\|null, string\\|null given\\.$#" + message: '#^Parameter \#1 \$repositoryClassName of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setCustomRepositoryClass\(\) expects class\-string\\|null, string\|null given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$table \\(array\\{name\\: string, schema\\?\\: string, indexes\\?\\: array, uniqueConstraints\\?\\: array, options\\?\\: array\\, quoted\\?\\: bool\\}\\) does not accept array\\{name\\: string, schema\\?\\: string, indexes\\?\\: array, uniqueConstraints\\?\\: array, options\\: array\\\\|bool\\|string\\>, quoted\\?\\: bool\\}\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$table \(array\{name\: string, schema\?\: string, indexes\?\: array, uniqueConstraints\?\: array, options\?\: array\, quoted\?\: bool\}\) does not accept array\{name\: string, schema\?\: string, indexes\?\: array, uniqueConstraints\?\: array, options\: array\\|bool\|string\>, quoted\?\: bool\}\.$#' + identifier: assign.propertyType count: 1 path: src/Mapping/Driver/XmlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\YamlDriver\\:\\:__construct\\(\\) has parameter \\$fileExtension with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\YamlDriver\:\:__construct\(\) has parameter \$fileExtension with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Driver/YamlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Driver\\\\YamlDriver\\:\\:cacheToArray\\(\\) should return array\\{usage\\: int\\|null, region\\: string\\|null\\} but returns array\\{usage\\: ''\\|'0'\\|int\\|null, region\\: string\\|null\\}\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Driver\\YamlDriver\:\:cacheToArray\(\) should return array\{usage\: int\|null, region\: string\|null\} but returns array\{usage\: ''''\|''0''\|int\|null, region\: string\|null\}\.$#' + identifier: return.type count: 1 path: src/Mapping/Driver/YamlDriver.php - - message: "#^Parameter \\#1 \\$columnDef of method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:setDiscriminatorColumn\\(\\) expects array\\{name\\: string\\|null, fieldName\\?\\: string, type\\?\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|null, array\\{name\\: string\\|null, type\\: string, length\\: int, columnDefinition\\: string\\|null, enumType\\: string\\|null\\} given\\.$#" + message: '#^Parameter \#1 \$columnDef of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setDiscriminatorColumn\(\) expects array\{name\: string\|null, fieldName\?\: string, type\?\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|null, array\{name\: string\|null, type\: string, length\: int, columnDefinition\: string\|null, enumType\: string\|null\} given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/YamlDriver.php - - message: "#^Parameter \\#1 \\$input of static method Symfony\\\\Component\\\\Yaml\\\\Yaml\\:\\:parse\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$input of static method Symfony\\Component\\Yaml\\Yaml\:\:parse\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Driver/YamlDriver.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Embedded\\:\\:__construct\\(\\) has parameter \\$columnPrefix with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Embedded\:\:__construct\(\) has parameter \$columnPrefix with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/Embedded.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\JoinTable\\:\\:__construct\\(\\) has parameter \\$inverseJoinColumns with no type specified\\.$#" + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/Entity.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/EntityListeners.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/GeneratedValue.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 4 + path: src/Mapping/InverseJoinColumn.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 4 + path: src/Mapping/JoinColumn.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 3 + path: src/Mapping/JoinTable.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\JoinTable\:\:__construct\(\) has parameter \$inverseJoinColumns with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/JoinTable.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\JoinTable\\:\\:__construct\\(\\) has parameter \\$joinColumns with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\JoinTable\:\:__construct\(\) has parameter \$joinColumns with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/JoinTable.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\MappedSuperclass\\:\\:__construct\\(\\) has parameter \\$repositoryClass with generic class Doctrine\\\\ORM\\\\EntityRepository but does not specify its types\\: T$#" + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 2 + path: src/Mapping/ManyToMany.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/ManyToOne.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\MappedSuperclass\:\:__construct\(\) has parameter \$repositoryClass with generic class Doctrine\\ORM\\EntityRepository but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/MappedSuperclass.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\MappedSuperclass\\:\\:\\$repositoryClass with generic class Doctrine\\\\ORM\\\\EntityRepository does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Mapping\\MappedSuperclass\:\:\$repositoryClass with generic class Doctrine\\ORM\\EntityRepository does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/MappedSuperclass.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\MappingException\\:\\:invalidIndexConfiguration\\(\\) has parameter \\$className with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\MappingException\:\:invalidIndexConfiguration\(\) has parameter \$className with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/MappingException.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\MappingException\\:\\:invalidIndexConfiguration\\(\\) has parameter \\$indexName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\MappingException\:\:invalidIndexConfiguration\(\) has parameter \$indexName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/MappingException.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\MappingException\\:\\:invalidUniqueConstraintConfiguration\\(\\) has parameter \\$className with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\MappingException\:\:invalidUniqueConstraintConfiguration\(\) has parameter \$className with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/MappingException.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\MappingException\\:\\:invalidUniqueConstraintConfiguration\\(\\) has parameter \\$indexName with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\MappingException\:\:invalidUniqueConstraintConfiguration\(\) has parameter \$indexName with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/MappingException.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getColumnAlias\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 2 + path: src/Mapping/OneToMany.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 2 + path: src/Mapping/OneToOne.php + + - + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getColumnAlias\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getIdentifierColumnNames\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getIdentifierColumnNames\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinTableName\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getJoinTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getReferencedJoinColumnName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getReferencedJoinColumnName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getSequenceName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getSequenceName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getTableName\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/QuoteStrategy.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\Reflection\\\\ReflectionPropertiesGetter\\:\\:getClassProperties\\(\\) has parameter \\$reflectionClass with generic class ReflectionClass but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Mapping\\Reflection\\ReflectionPropertiesGetter\:\:getClassProperties\(\) has parameter \$reflectionClass with generic class ReflectionClass but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Mapping/Reflection/ReflectionPropertiesGetter.php - - message: "#^Parameter \\#1 \\$class of method Doctrine\\\\Persistence\\\\Mapping\\\\ReflectionService\\:\\:getAccessibleProperty\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$class of method Doctrine\\Persistence\\Mapping\\ReflectionService\:\:getAccessibleProperty\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Mapping/Reflection/ReflectionPropertiesGetter.php - - message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ReflectionEmbeddedProperty\\:\\:setValue\\(\\) has parameter \\$object with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Mapping\\ReflectionEmbeddedProperty\:\:setValue\(\) has parameter \$object with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Mapping/ReflectionEmbeddedProperty.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\Instantiator\\\\Instantiator\\:\\:instantiate\\(\\) expects class\\-string\\, string given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\Instantiator\\Instantiator\:\:instantiate\(\) expects class\-string\, string given\.$#' + identifier: argument.type count: 1 path: src/Mapping/ReflectionEmbeddedProperty.php - - message: "#^Unable to resolve the template type T in call to method Doctrine\\\\Instantiator\\\\Instantiator\\:\\:instantiate\\(\\)$#" + message: '#^Unable to resolve the template type T in call to method Doctrine\\Instantiator\\Instantiator\:\:instantiate\(\)$#' + identifier: argument.templateType count: 1 path: src/Mapping/ReflectionEmbeddedProperty.php - - message: "#^Call to function is_int\\(\\) with string will always evaluate to false\\.$#" + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 2 + path: src/Mapping/SequenceGenerator.php + + - + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 1 + path: src/Mapping/Table.php + + - + message: '#^Call to function is_int\(\) with string will always evaluate to false\.$#' + identifier: function.impossibleType + count: 1 + path: src/NativeQuery.php + + - + message: '#^Method Doctrine\\ORM\\NativeQuery\:\:_doExecute\(\) never returns int so it can be removed from the return type\.$#' + identifier: return.unusedType count: 1 path: src/NativeQuery.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: src/NativeQuery.php - - message: "#^Method Doctrine\\\\ORM\\\\ORMInvalidArgumentException\\:\\:detachedEntityFoundThroughRelationship\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:detachedEntityFoundThroughRelationship\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/ORMInvalidArgumentException.php - - message: "#^Method Doctrine\\\\ORM\\\\ORMInvalidArgumentException\\:\\:invalidAssociation\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:invalidAssociation\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/ORMInvalidArgumentException.php - - message: "#^Method Doctrine\\\\ORM\\\\ORMInvalidArgumentException\\:\\:invalidAssociation\\(\\) has parameter \\$targetClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:invalidAssociation\(\) has parameter \$targetClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/ORMInvalidArgumentException.php - - message: "#^Method Doctrine\\\\ORM\\\\ORMInvalidArgumentException\\:\\:newEntityFoundThroughRelationship\\(\\) has parameter \\$associationMapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:newEntitiesFoundThroughRelationships\(\) has parameter \$newEntitiesWithAssociations with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 5 + path: src/ORMInvalidArgumentException.php + + - + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:newEntityFoundThroughRelationship\(\) has parameter \$associationMapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/ORMInvalidArgumentException.php - - message: "#^Method Doctrine\\\\ORM\\\\ORMInvalidArgumentException\\:\\:newEntityFoundThroughRelationshipMessage\\(\\) has parameter \\$associationMapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\ORMInvalidArgumentException\:\:newEntityFoundThroughRelationshipMessage\(\) has parameter \$associationMapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/ORMInvalidArgumentException.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:__construct\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\Common\\\\Collections\\\\Criteria'' and ''orderings'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/PersistentCollection.php + + - + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:__construct\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:get\\(\\) should return T\\|null but returns object\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:get\(\) should return T\|null but returns object\|null\.$#' + identifier: return.type count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:getMapping\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:getMapping\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:getTypeClass\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:getTypeClass\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:matching\\(\\) should return Doctrine\\\\Common\\\\Collections\\\\Collection\\ but returns Doctrine\\\\Common\\\\Collections\\\\ArrayCollection\\<\\(int\\|string\\), mixed\\>\\|Doctrine\\\\ORM\\\\LazyCriteriaCollection\\<\\(int\\|string\\), object\\>\\.$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:matching\(\) should return Doctrine\\Common\\Collections\\Collection\ but returns Doctrine\\Common\\Collections\\ArrayCollection\<\(int\|string\), mixed\>\|Doctrine\\ORM\\LazyCriteriaCollection\<\(int\|string\), object\>\.$#' + identifier: return.type count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:matching\\(\\) should return Doctrine\\\\Common\\\\Collections\\\\Collection\\ but returns Doctrine\\\\Common\\\\Collections\\\\ReadableCollection\\&Doctrine\\\\Common\\\\Collections\\\\Selectable\\\\.$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:matching\(\) should return Doctrine\\Common\\Collections\\Collection\ but returns Doctrine\\Common\\Collections\\ReadableCollection\&Doctrine\\Common\\Collections\\Selectable\\.$#' + identifier: return.type count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\PersistentCollection\\:\\:setOwner\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\PersistentCollection\:\:setOwner\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/PersistentCollection.php - - message: "#^Offset 'orphanRemoval' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''orphanRemoval'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/PersistentCollection.php - - message: "#^Parameter \\#1 \\$key of method Doctrine\\\\ORM\\\\PersistentCollection\\\\:\\:set\\(\\) expects TKey of \\(int\\|string\\), int\\|string given\\.$#" + message: '#^Parameter \#1 \$key of method Doctrine\\ORM\\PersistentCollection\\:\:set\(\) expects TKey of \(int\|string\), int\|string given\.$#' + identifier: argument.type count: 1 path: src/PersistentCollection.php - - message: "#^Parameter \\#2 \\$callback of function array_walk expects callable\\(object, int\\)\\: mixed, array\\{Doctrine\\\\Common\\\\Collections\\\\Collection\\&Doctrine\\\\Common\\\\Collections\\\\Selectable\\, 'add'\\} given\\.$#" + message: '#^Parameter \#2 \$callback of function array_walk expects callable\(object, int\)\: mixed, array\{Doctrine\\Common\\Collections\\Collection\&Doctrine\\Common\\Collections\\Selectable\, ''add''\} given\.$#' + identifier: argument.type count: 1 path: src/PersistentCollection.php - - message: "#^Property Doctrine\\\\ORM\\\\PersistentCollection\\:\\:\\$association type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\PersistentCollection\:\:\$association type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/PersistentCollection.php - - message: "#^Property Doctrine\\\\ORM\\\\PersistentCollection\\:\\:\\$typeClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\PersistentCollection\:\:\$typeClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/PersistentCollection.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:contains\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:contains\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:containsKey\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:containsKey\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:count\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:count\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:delete\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:delete\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:get\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:get\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:loadCriteria\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:loadCriteria\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:slice\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:slice\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\CollectionPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\CollectionPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/CollectionPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:collectJoinTableColumnParameters\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\Common\\\\Collections\\\\Criteria'' and ''orderings'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Persisters/Collection/ManyToManyPersister.php + + - + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:collectJoinTableColumnParameters\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:contains\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:contains\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:containsKey\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:containsKey\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:count\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:count\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:delete\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:delete\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:generateFilterConditionSQL\\(\\) has parameter \\$targetEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:generateFilterConditionSQL\(\) has parameter \$targetEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:get\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:get\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getDeleteRowSQL\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getDeleteRowSQL\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getDeleteRowSQLParameters\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getDeleteRowSQLParameters\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getDeleteSQL\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getDeleteSQL\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getDeleteSQLParameters\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getDeleteSQLParameters\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getFilterSql\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getFilterSql\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getInsertRowSQL\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getInsertRowSQL\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getInsertRowSQLParameters\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getInsertRowSQLParameters\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getJoinTableRestrictions\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getJoinTableRestrictions\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getJoinTableRestrictionsWithKey\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getJoinTableRestrictionsWithKey\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getOnConditionSQL\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getOnConditionSQL\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:getOrderingSql\\(\\) has parameter \\$targetClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:getOrderingSql\(\) has parameter \$targetClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:loadCriteria\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:loadCriteria\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:slice\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:slice\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\ManyToManyPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\ManyToManyPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'indexBy' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''indexBy'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 10 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'joinTableColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTableColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 4 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'relationToSourceKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'relationToSourceKey…'\\|'relationToTargetKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToSourceKeyColumns''\|''relationToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Offset 'relationToTargetKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\ORM\\\\EntityManagerInterface\\:\\:getClassMetadata\\(\\) expects string, class\\-string\\|false given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects string, class\-string\|false given\.$#' + identifier: argument.type count: 3 path: src/Persisters/Collection/ManyToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:contains\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:contains\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:containsKey\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:containsKey\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:count\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:count\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:delete\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:delete\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:delete\\(\\) should return int\\|null but empty return statement found\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:delete\(\) should return int\|null but empty return statement found\.$#' + identifier: return.empty count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:deleteEntityCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:deleteEntityCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:deleteJoinedEntityCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:deleteJoinedEntityCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:get\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:get\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:loadCriteria\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:loadCriteria\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:slice\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:slice\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Collection\\\\OneToManyPersister\\:\\:update\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Collection\\OneToManyPersister\:\:update\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Offset 'orphanRemoval' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''orphanRemoval'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Collection/OneToManyPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\AbstractEntityInheritancePersister\\:\\:getSelectColumnSQL\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\AbstractEntityInheritancePersister\:\:getSelectColumnSQL\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/AbstractEntityInheritancePersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:__construct\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\Common\\\\Collections\\\\Criteria'' and ''orderings'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Persisters/Entity/BasicEntityPersister.php + + - + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:__construct\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Persisters/Entity/BasicEntityPersister.php + + - + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:expandCriteriaParameters\(\) should return array\{list\, list\\} but returns array\{array\, list\\}\.$#' + identifier: return.type + count: 1 + path: src/Persisters/Entity/BasicEntityPersister.php + + - + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:expandParameters\(\) should return array\{list\, list\\} but returns array\{array\, list\\}\.$#' + identifier: return.type + count: 1 + path: src/Persisters/Entity/BasicEntityPersister.php + + - + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:expandToManyParameters\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:expandToManyParameters\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:extractIdentifierTypes\(\) has parameter \$versionedClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:extractIdentifierTypes\\(\\) has parameter \\$versionedClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:fetchVersionAndNotUpsertableValues\(\) has parameter \$versionedClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:fetchVersionAndNotUpsertableValues\\(\\) has parameter \\$versionedClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:generateFilterConditionSQL\(\) has parameter \$targetEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:generateFilterConditionSQL\\(\\) has parameter \\$targetEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getClassIdentifiersTypes\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getClassIdentifiersTypes\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getIndividualValue\(\) should return list\ but returns array\\.$#' + identifier: return.type count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getOneToManyStatement\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getOneToManyStatement\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectColumnAssociationSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectColumnAssociationSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectColumnAssociationSQL\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectColumnAssociationSQL\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectColumnSQL\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectColumnSQL\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectConditionStatementColumnSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectConditionStatementColumnSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectConditionStatementSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectConditionStatementSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectManyToManyJoinSQL\\(\\) has parameter \\$manyToMany with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectManyToManyJoinSQL\(\) has parameter \$manyToMany with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getTypes\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getTypes\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:load\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:load\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadAll\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadAll\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadCollectionFromStatement\\(\\) has parameter \\$coll with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadCollectionFromStatement\(\) has parameter \$coll with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadManyToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadOneToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:loadOneToOneEntity\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:loadOneToOneEntity\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 9 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 8 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Offset 'relationToTargetKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Offset 'sourceToTargetKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''sourceToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Parameter \\#1 \\$association of method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getJoinTableName\\(\\) expects array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}, array\\ given\\.$#" + message: '#^Parameter \#1 \$association of method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinTableName\(\) expects array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}, array\ given\.$#' + identifier: argument.type count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Parameter \\#2 \\$assoc of method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectSQL\\(\\) expects array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\|null, array\\ given\\.$#" + message: '#^Parameter \#2 \$assoc of method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectSQL\(\) expects array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\|null, non\-empty\-array\ given\.$#' + identifier: argument.type count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Parameter \\#3 \\$assoc of method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:getSelectConditionStatementSQL\\(\\) expects array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\|null, array\\\\|null given\\.$#" + message: '#^Parameter \#3 \$assoc of method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:getSelectConditionStatementSQL\(\) expects array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\|null, array\\|null given\.$#' + identifier: argument.type count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Parameter \\#3 \\$hints of method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:hydrateAll\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#3 \$hints of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:hydrateAll\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Parameter \\#3 \\$hints of method Doctrine\\\\ORM\\\\Internal\\\\Hydration\\\\AbstractHydrator\\:\\:hydrateAll\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#3 \$hints of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:hydrateAll\(\) expects array\, array\ given\.$#' + identifier: argument.type count: 4 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Property Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\BasicEntityPersister\\:\\:\\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:\$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Persisters/Entity/BasicEntityPersister.php + + - + message: '#^Property Doctrine\\ORM\\Persisters\\Entity\\CachedPersisterContext\:\:\$sqlTableAliases \(array\\) does not accept array\\.$#' + identifier: assign.propertyType count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Property Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\CachedPersisterContext\\:\\:\\$sqlTableAliases \\(array\\\\) does not accept array\\\\.$#" + message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#" + message: '#^Strict comparison using \=\=\= between string and null will always evaluate to false\.$#' + identifier: identical.alwaysFalse count: 1 path: src/Persisters/Entity/BasicEntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\CachedPersisterContext\\:\\:__construct\\(\\) has parameter \\$class with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\CachedPersisterContext\:\:__construct\(\) has parameter \$class with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/CachedPersisterContext.php - - message: "#^Property Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\CachedPersisterContext\\:\\:\\$class \\(Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata\\) does not accept Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\.$#" + message: '#^Property Doctrine\\ORM\\Persisters\\Entity\\CachedPersisterContext\:\:\$class \(Doctrine\\ORM\\Mapping\\ClassMetadata\) does not accept Doctrine\\Persistence\\Mapping\\ClassMetadata\.$#' + identifier: assign.propertyType count: 1 path: src/Persisters/Entity/CachedPersisterContext.php - - message: "#^Property Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\CachedPersisterContext\\:\\:\\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Persisters\\Entity\\CachedPersisterContext\:\:\$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/CachedPersisterContext.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getSelectConditionStatementSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getSelectConditionStatementSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:getSelectSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:getSelectSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:load\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:load\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadAll\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadAll\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadManyToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadManyToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadManyToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadOneToManyCollection\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadOneToManyCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadOneToManyCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\EntityPersister\\:\\:loadOneToOneEntity\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\EntityPersister\:\:loadOneToOneEntity\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/EntityPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\JoinedSubclassPersister\\:\\:fetchVersionAndNotUpsertableValues\\(\\) has parameter \\$versionedClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\JoinedSubclassPersister\:\:fetchVersionAndNotUpsertableValues\(\) has parameter \$versionedClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/JoinedSubclassPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\JoinedSubclassPersister\\:\\:getSelectSQL\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\JoinedSubclassPersister\:\:getSelectSQL\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Persisters/Entity/JoinedSubclassPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\JoinedSubclassPersister\\:\\:getVersionedClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\JoinedSubclassPersister\:\:getVersionedClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/JoinedSubclassPersister.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Persisters/Entity/JoinedSubclassPersister.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Entity/JoinedSubclassPersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\Entity\\\\SingleTablePersister\\:\\:generateFilterConditionSQL\\(\\) has parameter \\$targetEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\SingleTablePersister\:\:generateFilterConditionSQL\(\) has parameter \$targetEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/Entity/SingleTablePersister.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Persisters/Entity/SingleTablePersister.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\SqlExpressionVisitor\\:\\:__construct\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Persisters\\SqlExpressionVisitor\:\:__construct\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/SqlExpressionVisitor.php - - message: "#^Property Doctrine\\\\ORM\\\\Persisters\\\\SqlExpressionVisitor\\:\\:\\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Persisters\\SqlExpressionVisitor\:\:\$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Persisters/SqlExpressionVisitor.php - - message: "#^Method Doctrine\\\\ORM\\\\Persisters\\\\SqlValueVisitor\\:\\:getParamsAndTypes\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Persisters\\SqlValueVisitor\:\:getParamsAndTypes\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Persisters/SqlValueVisitor.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\DefaultProxyClassNameResolver\\:\\:resolveClassName\\(\\) should return class\\-string\\ but returns class\\-string\\\\>\\|class\\-string\\\\.$#" + message: '#^Method Doctrine\\ORM\\Proxy\\DefaultProxyClassNameResolver\:\:resolveClassName\(\) should return class\-string\ but returns class\-string\\>\|class\-string\\.$#' + identifier: return.type count: 1 path: src/Proxy/DefaultProxyClassNameResolver.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\DefaultProxyClassNameResolver\\:\\:resolveClassName\\(\\) should return class\\-string\\ but returns string\\.$#" + message: '#^Method Doctrine\\ORM\\Proxy\\DefaultProxyClassNameResolver\:\:resolveClassName\(\) should return class\-string\ but returns string\.$#' + identifier: return.type count: 1 path: src/Proxy/DefaultProxyClassNameResolver.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$isEmbeddedClass\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isEmbeddedClass\.$#' + identifier: property.notFound + count: 1 + path: src/Proxy/ProxyFactory.php + + - + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$isMappedSuperclass\.$#' + identifier: property.notFound + count: 1 + path: src/Proxy/ProxyFactory.php + + - + message: '#^Call to an undefined method Doctrine\\Common\\Proxy\\Proxy\:\:__wakeup\(\)\.$#' + identifier: method.notFound count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$isMappedSuperclass\\.$#" + message: '#^Call to an undefined static method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createLazyGhost\(\)\.$#' + identifier: staticMethod.notFound count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Call to an undefined method Doctrine\\\\Common\\\\Proxy\\\\Proxy\\:\\:__wakeup\\(\\)\\.$#" + message: '#^Call to function is_bool\(\) with bool will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Call to an undefined static method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createLazyGhost\\(\\)\\.$#" + message: '#^Comparison operation "\<" between 0\|1\|2\|3\|4 and 0 is always false\.$#' + identifier: smaller.alwaysFalse count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Comparison operation \"\\<\" between 0\\|1\\|2\\|3\\|4 and 0 is always false\\.$#" + message: '#^Comparison operation "\>" between 0\|1\|2\|3\|4 and 4 is always false\.$#' + identifier: greater.alwaysFalse count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Comparison operation \"\\>\" between 0\\|1\\|2\\|3\\|4 and 4 is always false\\.$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) has Doctrine\\ORM\\EntityNotFoundException in PHPDoc @throws tag but it''s not thrown\.$#' + identifier: throws.unusedType count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createCloner\\(\\) has parameter \\$classMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) has parameter \$classMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createCloner\\(\\) return type with generic interface Doctrine\\\\Common\\\\Proxy\\\\Proxy does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) return type with generic interface Doctrine\\Common\\Proxy\\Proxy does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createInitializer\\(\\) has parameter \\$classMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createInitializer\(\) has parameter \$classMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createInitializer\\(\\) return type with generic interface Doctrine\\\\Common\\\\Proxy\\\\Proxy does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createInitializer\(\) return type with generic interface Doctrine\\Common\\Proxy\\Proxy does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createLazyInitializer\\(\\) has parameter \\$classMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createLazyInitializer\(\) has Doctrine\\ORM\\EntityNotFoundException in PHPDoc @throws tag but it''s not thrown\.$#' + identifier: throws.unusedType count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createLazyInitializer\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createLazyInitializer\(\) has parameter \$classMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:createLazyInitializer\\(\\) return type with generic interface Doctrine\\\\ORM\\\\Proxy\\\\InternalProxy does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createLazyInitializer\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:generateProxyClass\\(\\) has parameter \\$class with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createLazyInitializer\(\) return type with generic interface Doctrine\\ORM\\Proxy\\InternalProxy does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:generateProxyClasses\\(\\) has parameter \\$classes with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateProxyClass\(\) has parameter \$class with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:generateSerializeImpl\\(\\) has parameter \\$class with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateProxyClasses\(\) has parameter \$classes with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:generateUseLazyGhostTrait\\(\\) has parameter \\$class with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateSerializeImpl\(\) has parameter \$class with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:getProxy\\(\\) return type with generic interface Doctrine\\\\Common\\\\Proxy\\\\Proxy does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateUseLazyGhostTrait\(\) has parameter \$class with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:loadProxyClass\\(\\) has parameter \\$class with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:getProxy\(\) return type with generic interface Doctrine\\Common\\Proxy\\Proxy does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:resetUninitializedProxy\\(\\) has parameter \\$proxy with generic interface Doctrine\\\\Common\\\\Proxy\\\\Proxy but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:loadProxyClass\(\) has parameter \$class with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:resetUninitializedProxy\\(\\) return type with generic interface Doctrine\\\\Common\\\\Proxy\\\\Proxy does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:resetUninitializedProxy\(\) has parameter \$proxy with generic interface Doctrine\\Common\\Proxy\\Proxy but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:skipClass\\(\\) has parameter \\$metadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:resetUninitializedProxy\(\) return type with generic interface Doctrine\\Common\\Proxy\\Proxy does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Parameter \\#1 \\$class of method Doctrine\\\\ORM\\\\Utility\\\\IdentifierFlattener\\:\\:flattenIdentifier\\(\\) expects Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata, Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata given\\.$#" + message: '#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:skipClass\(\) has parameter \$metadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Proxy/ProxyFactory.php + + - + message: '#^Parameter \#1 \$class of method Doctrine\\ORM\\Utility\\IdentifierFlattener\:\:flattenIdentifier\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\Persistence\\Mapping\\ClassMetadata given\.$#' + identifier: argument.type count: 3 path: src/Proxy/ProxyFactory.php - - message: "#^Parameter \\#1 \\$filename of function filemtime expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function filemtime expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Proxy/ProxyFactory.php + + - + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" + message: '#^Parameter \#3 \$newScope of static method Closure\:\:bind\(\) expects ''static''\|class\-string\|object\|null, string given\.$#' + identifier: argument.type count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Result of \\|\\| is always false\\.$#" + message: '#^Result of \|\| is always false\.$#' + identifier: booleanOr.alwaysFalse count: 1 path: src/Proxy/ProxyFactory.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\:\\:processParameterMappings\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Cache\\\\QueryCacheProfile'' and ''getResultCache'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Query.php + + - + message: '#^Method Doctrine\\ORM\\Query\:\:processParameterMappings\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 1 path: src/Query.php - - message: "#^Parameter \\#2 \\$sqlParams of method Doctrine\\\\ORM\\\\Query\\:\\:evictResultSetCache\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#2 \$sqlParams of method Doctrine\\ORM\\Query\:\:evictResultSetCache\(\) expects array\, list\ given\.$#' + identifier: argument.type count: 1 path: src/Query.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\AbsFunction\\:\\:\\$simpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\AbsFunction\:\:\$simpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/AbsFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\BitAndFunction\\:\\:\\$firstArithmetic \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\BitAndFunction\:\:\$firstArithmetic \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/BitAndFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\BitAndFunction\\:\\:\\$secondArithmetic \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\BitAndFunction\:\:\$secondArithmetic \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/BitAndFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\BitOrFunction\\:\\:\\$firstArithmetic \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\BitOrFunction\:\:\$firstArithmetic \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/BitOrFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\BitOrFunction\\:\\:\\$secondArithmetic \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\BitOrFunction\:\:\$secondArithmetic \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/BitOrFunction.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\:\\:\\$value\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Query\\AST\\Node\:\:\$value\.$#' + identifier: property.notFound count: 1 path: src/Query/AST/Functions/DateAddFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\DateAddFunction\\:\\:\\$firstDateExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\DateAddFunction\:\:\$firstDateExpression \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/DateAddFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\DateAddFunction\\:\\:\\$intervalExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\DateAddFunction\:\:\$intervalExpression \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/DateAddFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\DateDiffFunction\\:\\:\\$date1 \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\DateDiffFunction\:\:\$date1 \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/DateDiffFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\DateDiffFunction\\:\\:\\$date2 \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\DateDiffFunction\:\:\$date2 \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/DateDiffFunction.php - - message: "#^Access to an undefined property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\:\\:\\$value\\.$#" + message: '#^Access to an undefined property Doctrine\\ORM\\Query\\AST\\Node\:\:\$value\.$#' + identifier: property.notFound count: 1 path: src/Query/AST/Functions/DateSubFunction.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Query/AST/Functions/IdentityFunction.php - - message: "#^Parameter \\#1 \\$joinColumn of method Doctrine\\\\ORM\\\\Mapping\\\\QuoteStrategy\\:\\:getJoinColumnName\\(\\) expects array\\{name\\: string, referencedColumnName\\: string, unique\\?\\: bool, quoted\\?\\: bool, fieldName\\?\\: string, onDelete\\?\\: string, columnDefinition\\?\\: string, nullable\\?\\: bool\\}, array\\{name\\: string, referencedColumnName\\: string, unique\\?\\: bool, quoted\\?\\: bool, fieldName\\?\\: string, onDelete\\?\\: string, columnDefinition\\?\\: string, nullable\\?\\: bool\\}\\|false given\\.$#" + message: '#^Parameter \#1 \$joinColumn of method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinColumnName\(\) expects array\{name\: string, referencedColumnName\: string, unique\?\: bool, quoted\?\: bool, fieldName\?\: string, onDelete\?\: string, columnDefinition\?\: string, nullable\?\: bool\}, array\{name\: string, referencedColumnName\: string, unique\?\: bool, quoted\?\: bool, fieldName\?\: string, onDelete\?\: string, columnDefinition\?\: string, nullable\?\: bool\}\|false given\.$#' + identifier: argument.type count: 1 path: src/Query/AST/Functions/IdentityFunction.php - - message: "#^Parameter \\#1 \\$simpleArithmeticExpr of method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkSimpleArithmeticExpression\\(\\) expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string, Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\|true given\\.$#" + message: '#^Parameter \#1 \$simpleArithmeticExpr of method Doctrine\\ORM\\Query\\SqlWalker\:\:walkSimpleArithmeticExpression\(\) expects Doctrine\\ORM\\Query\\AST\\Node\|string, Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\|true given\.$#' + identifier: argument.type count: 1 path: src/Query/AST/Functions/LocateFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\LocateFunction\\:\\:\\$simpleArithmeticExpression \\(bool\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\LocateFunction\:\:\$simpleArithmeticExpression \(bool\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/LocateFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\ModFunction\\:\\:\\$firstSimpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\ModFunction\:\:\$firstSimpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/ModFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\ModFunction\\:\\:\\$secondSimpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\ModFunction\:\:\$secondSimpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/ModFunction.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Query/AST/Functions/SizeFunction.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Query/AST/Functions/SizeFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\SqrtFunction\\:\\:\\$simpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\SqrtFunction\:\:\$simpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/SqrtFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\SubstringFunction\\:\\:\\$firstSimpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\SubstringFunction\:\:\$firstSimpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/SubstringFunction.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\SubstringFunction\\:\\:\\$secondSimpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\|null\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\Functions\\SubstringFunction\:\:\$secondSimpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\|null\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/AST/Functions/SubstringFunction.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\AST\\\\IndexBy\\:\\:dispatch\\(\\) should return string but returns null\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\AST\\IndexBy\:\:dispatch\(\) should return string but returns null\.$#' + identifier: return.type count: 1 path: src/Query/AST/IndexBy.php - - message: "#^Result of method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkIndexBy\\(\\) \\(void\\) is used\\.$#" + message: '#^Result of method Doctrine\\ORM\\Query\\SqlWalker\:\:walkIndexBy\(\) \(void\) is used\.$#' + identifier: method.void count: 1 path: src/Query/AST/IndexBy.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkJoinPathExpression\\(\\)\\.$#" + message: '#^Default value of the parameter \#2 \$value \(array\{\}\) of method Doctrine\\ORM\\Query\\AST\\InstanceOfExpression\:\:__construct\(\) is incompatible with type non\-empty\-list\\.$#' + identifier: parameter.defaultValue + count: 1 + path: src/Query/AST/InstanceOfExpression.php + + - + message: '#^Call to an undefined method Doctrine\\ORM\\Query\\SqlWalker\:\:walkJoinPathExpression\(\)\.$#' + identifier: method.notFound count: 1 path: src/Query/AST/JoinClassPathExpression.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkJoinVariableDeclaration\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Query\\SqlWalker\:\:walkJoinVariableDeclaration\(\)\.$#' + identifier: method.notFound count: 1 path: src/Query/AST/JoinVariableDeclaration.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkWhenClauseExpression\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Query\\SqlWalker\:\:walkWhenClauseExpression\(\)\.$#' + identifier: method.notFound count: 1 path: src/Query/AST/SimpleWhenClause.php - - message: "#^Call to an undefined method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkWhenClauseExpression\\(\\)\\.$#" + message: '#^Call to an undefined method Doctrine\\ORM\\Query\\SqlWalker\:\:walkWhenClauseExpression\(\)\.$#' + identifier: method.notFound count: 1 path: src/Query/AST/WhenClause.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\Exec\\\\AbstractSqlExecutor\\:\\:\\$queryCacheProfile \\(Doctrine\\\\DBAL\\\\Cache\\\\QueryCacheProfile\\) does not accept null\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\Exec\\AbstractSqlExecutor\:\:\$queryCacheProfile \(Doctrine\\DBAL\\Cache\\QueryCacheProfile\) does not accept null\.$#' + identifier: assign.propertyType count: 1 path: src/Query/Exec/AbstractSqlExecutor.php - - message: "#^Argument of an invalid type array\\\\|string supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type list\\|string supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Query/Exec/MultiTableDeleteExecutor.php - - message: "#^Cannot assign new offset to array\\\\|string\\.$#" + message: '#^Cannot assign new offset to list\\|string\.$#' + identifier: offsetAssign.dimType count: 1 path: src/Query/Exec/MultiTableDeleteExecutor.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Exec\\\\MultiTableDeleteExecutor\\:\\:execute\\(\\) should return int but returns int\\|string\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Exec\\MultiTableDeleteExecutor\:\:execute\(\) should return int but returns int\|string\.$#' + identifier: return.type count: 1 path: src/Query/Exec/MultiTableDeleteExecutor.php - - message: "#^Argument of an invalid type array\\\\|string supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type list\\|string supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Query/Exec/MultiTableUpdateExecutor.php - - message: "#^Cannot assign new offset to array\\\\|string\\.$#" + message: '#^Cannot assign new offset to list\\|string\.$#' + identifier: offsetAssign.dimType count: 1 path: src/Query/Exec/MultiTableUpdateExecutor.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Exec\\\\MultiTableUpdateExecutor\\:\\:execute\\(\\) should return int but returns int\\|string\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Exec\\MultiTableUpdateExecutor\:\:execute\(\) should return int but returns int\|string\.$#' + identifier: return.type count: 1 path: src/Query/Exec/MultiTableUpdateExecutor.php - - message: "#^Parameter \\#1 \\$sql of method Doctrine\\\\DBAL\\\\Connection\\:\\:executeQuery\\(\\) expects string, array\\\\|string given\\.$#" + message: '#^Parameter \#1 \$sql of method Doctrine\\DBAL\\Connection\:\:executeQuery\(\) expects string, list\\|string given\.$#' + identifier: argument.type count: 1 path: src/Query/Exec/SingleSelectExecutor.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Exec\\\\SingleTableDeleteUpdateExecutor\\:\\:execute\\(\\) should return int but returns int\\|string\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Exec\\SingleTableDeleteUpdateExecutor\:\:execute\(\) should return int but returns int\|string\.$#' + identifier: return.type count: 1 path: src/Query/Exec/SingleTableDeleteUpdateExecutor.php - - message: "#^Parameter \\#1 \\$sql of method Doctrine\\\\DBAL\\\\Connection\\:\\:executeStatement\\(\\) expects string, array\\\\|string given\\.$#" + message: '#^Parameter \#1 \$sql of method Doctrine\\DBAL\\Connection\:\:executeStatement\(\) expects string, list\\|string given\.$#' + identifier: argument.type count: 1 path: src/Query/Exec/SingleTableDeleteUpdateExecutor.php - - message: "#^PHPDoc type array\\ of property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Andx\\:\\:\\$allowedClasses is not covariant with PHPDoc type array\\ of overridden property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Base\\:\\:\\$allowedClasses\\.$#" + message: '#^PHPDoc type array\ of property Doctrine\\ORM\\Query\\Expr\\Andx\:\:\$allowedClasses is not covariant with PHPDoc type list\ of overridden property Doctrine\\ORM\\Query\\Expr\\Base\:\:\$allowedClasses\.$#' + identifier: property.phpDocType count: 1 path: src/Query/Expr/Andx.php - - message: "#^Cannot cast object\\|string to string\\.$#" + message: '#^Cannot cast object\|string to string\.$#' + identifier: cast.string count: 1 path: src/Query/Expr/Composite.php - - message: "#^PHPDoc type array\\ of property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Orx\\:\\:\\$allowedClasses is not covariant with PHPDoc type array\\ of overridden property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Base\\:\\:\\$allowedClasses\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Expr\\Func\:\:getArguments\(\) should return list\ but returns array\\.$#' + identifier: return.type + count: 1 + path: src/Query/Expr/Func.php + + - + message: '#^PHPDoc type array\ of property Doctrine\\ORM\\Query\\Expr\\Orx\:\:\$allowedClasses is not covariant with PHPDoc type list\ of overridden property Doctrine\\ORM\\Query\\Expr\\Base\:\:\$allowedClasses\.$#' + identifier: property.phpDocType count: 1 path: src/Query/Expr/Orx.php - - message: "#^PHPDoc type array\\ of property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Select\\:\\:\\$allowedClasses is not covariant with PHPDoc type array\\ of overridden property Doctrine\\\\ORM\\\\Query\\\\Expr\\\\Base\\:\\:\\$allowedClasses\\.$#" + message: '#^PHPDoc type array\ of property Doctrine\\ORM\\Query\\Expr\\Select\:\:\$allowedClasses is not covariant with PHPDoc type list\ of overridden property Doctrine\\ORM\\Query\\Expr\\Base\:\:\$allowedClasses\.$#' + identifier: property.phpDocType count: 1 path: src/Query/Expr/Select.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\Filter\\\\SQLFilter\\:\\:\\$parameters \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\Filter\\SQLFilter\:\:\$parameters \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Query/Filter/SQLFilter.php - - message: "#^Call to an undefined method object\\:\\:parse\\(\\)\\.$#" - count: 1 + message: '#^@readonly property cannot have a default value\.$#' + identifier: property.readOnlyByPhpDocDefaultValue + count: 3 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:ArithmeticFactor\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticFactor but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#" + message: '#^Call to an undefined method object\:\:parse\(\)\.$#' + identifier: method.notFound count: 1 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:ArithmeticTerm\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticFactor\\|string\\.$#" + message: '#^Class Doctrine\\ORM\\Query\\Parser has type alias QueryComponent with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue + count: 5 + path: src/Query/Parser.php + + - + message: '#^Instanceof between Doctrine\\ORM\\Query\\AST\\SelectStatement and Doctrine\\ORM\\Query\\AST\\SelectStatement will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:CustomFunctionsReturningStrings\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\FunctionNode but returns object\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Parser\:\:ArithmeticFactor\(\) should return Doctrine\\ORM\\Query\\AST\\ArithmeticFactor but returns Doctrine\\ORM\\Query\\AST\\Node\|string\.$#' + identifier: return.type count: 1 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:SimpleArithmeticExpression\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|string\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Parser\:\:ArithmeticTerm\(\) should return Doctrine\\ORM\\Query\\AST\\ArithmeticTerm but returns Doctrine\\ORM\\Query\\AST\\ArithmeticFactor\|string\.$#' + identifier: return.type count: 1 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:getMetadataForDqlAlias\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\Parser\:\:CustomFunctionsReturningStrings\(\) should return Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode but returns object\.$#' + identifier: return.type count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#1 \\$AST of method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:processDeferredNewObjectExpressions\\(\\) expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\SelectStatement, Doctrine\\\\ORM\\\\Query\\\\AST\\\\DeleteStatement\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SelectStatement\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\UpdateStatement given\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\Parser\:\:SimpleArithmeticExpression\(\) should return Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression but returns Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|string\.$#' + identifier: return.type count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#1 \\$expected of method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:syntaxError\\(\\) expects string, int\\|string given\\.$#" - count: 3 + message: '#^Method Doctrine\\ORM\\Query\\Parser\:\:getMetadataForDqlAlias\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics + count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#1 \\$expression of class Doctrine\\\\ORM\\\\Query\\\\AST\\\\NullComparisonExpression constructor expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node, Doctrine\\\\ORM\\\\Query\\\\AST\\\\CoalesceExpression\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\FunctionNode\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\InputParameter\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\NullIfExpression\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\PathExpression\\|string given\\.$#" + message: '#^Parameter \#1 \$AST of method Doctrine\\ORM\\Query\\Parser\:\:processDeferredNewObjectExpressions\(\) expects Doctrine\\ORM\\Query\\AST\\SelectStatement, Doctrine\\ORM\\Query\\AST\\DeleteStatement\|Doctrine\\ORM\\Query\\AST\\SelectStatement\|Doctrine\\ORM\\Query\\AST\\UpdateStatement given\.$#' + identifier: argument.type count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#2 \\$pathExpression of class Doctrine\\\\ORM\\\\Query\\\\AST\\\\AggregateExpression constructor expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\PathExpression\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression, Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression given\\.$#" + message: '#^Parameter \#1 \$expected of method Doctrine\\ORM\\Query\\Parser\:\:syntaxError\(\) expects string, int\|string given\.$#' + identifier: argument.type + count: 3 + path: src/Query/Parser.php + + - + message: '#^Parameter \#1 \$expression of class Doctrine\\ORM\\Query\\AST\\NullComparisonExpression constructor expects Doctrine\\ORM\\Query\\AST\\Node, Doctrine\\ORM\\Query\\AST\\CoalesceExpression\|Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode\|Doctrine\\ORM\\Query\\AST\\InputParameter\|Doctrine\\ORM\\Query\\AST\\NullIfExpression\|Doctrine\\ORM\\Query\\AST\\PathExpression\|string given\.$#' + identifier: argument.type count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#2 \\$stringPattern of class Doctrine\\\\ORM\\\\Query\\\\AST\\\\LikeExpression constructor expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\Functions\\\\FunctionNode\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\InputParameter\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\Literal\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\PathExpression, Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node given\\.$#" + message: '#^Parameter \#2 \$pathExpression of class Doctrine\\ORM\\Query\\AST\\AggregateExpression constructor expects Doctrine\\ORM\\Query\\AST\\PathExpression\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression, Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression given\.$#' + identifier: argument.type count: 1 path: src/Query/Parser.php - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" + message: '#^Parameter \#2 \$stringPattern of class Doctrine\\ORM\\Query\\AST\\LikeExpression constructor expects Doctrine\\ORM\\Query\\AST\\Functions\\FunctionNode\|Doctrine\\ORM\\Query\\AST\\InputParameter\|Doctrine\\ORM\\Query\\AST\\Literal\|Doctrine\\ORM\\Query\\AST\\PathExpression, Doctrine\\ORM\\Query\\AST\\Node given\.$#' + identifier: argument.type count: 1 path: src/Query/Parser.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticExpression\\:\\:\\$simpleArithmeticExpression \\(Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\|null\\) does not accept Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression\\.$#" + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Query/Parser.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:\\$queryComponents \\(array\\, parent\\?\\: string\\|null, relation\\?\\: array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\|null, map\\?\\: string\\|null, resultVariable\\?\\: Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string, nestingLevel\\: int, token\\: Doctrine\\\\Common\\\\Lexer\\\\Token\\<1\\|2\\|3\\|4\\|5\\|6\\|7\\|8\\|9\\|10\\|11\\|12\\|13\\|14\\|15\\|16\\|17\\|18\\|19\\|100\\|101\\|102\\|200\\|201\\|202\\|203\\|204\\|205\\|206\\|207\\|208\\|209\\|210\\|211\\|212\\|213\\|214\\|215\\|216\\|217\\|218\\|219\\|220\\|221\\|222\\|223\\|224\\|225\\|226\\|227\\|228\\|229\\|230\\|231\\|232\\|233\\|234\\|235\\|236\\|237\\|238\\|239\\|240\\|241\\|242\\|243\\|244\\|245\\|246\\|247\\|248\\|249\\|250\\|251\\|252\\|253\\|254\\|255\\|256, string\\>\\}\\>\\) does not accept non\\-empty\\-array\\, parent\\?\\: string\\|null, relation\\?\\: array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\|null, map\\?\\: string\\|null, resultVariable\\?\\: Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string, nestingLevel\\: int, token\\: Doctrine\\\\Common\\\\Lexer\\\\Token\\<1\\|2\\|3\\|4\\|5\\|6\\|7\\|8\\|9\\|10\\|11\\|12\\|13\\|14\\|15\\|16\\|17\\|18\\|19\\|100\\|101\\|102\\|200\\|201\\|202\\|203\\|204\\|205\\|206\\|207\\|208\\|209\\|210\\|211\\|212\\|213\\|214\\|215\\|216\\|217\\|218\\|219\\|220\\|221\\|222\\|223\\|224\\|225\\|226\\|227\\|228\\|229\\|230\\|231\\|232\\|233\\|234\\|235\\|236\\|237\\|238\\|239\\|240\\|241\\|242\\|243\\|244\\|245\\|246\\|247\\|248\\|249\\|250\\|251\\|252\\|253\\|254\\|255\\|256, string\\>\\|null\\}\\>\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\AST\\ArithmeticExpression\:\:\$simpleArithmeticExpression \(Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\|null\) does not accept Doctrine\\ORM\\Query\\AST\\ArithmeticTerm\|Doctrine\\ORM\\Query\\AST\\SimpleArithmeticExpression\.$#' + identifier: assign.propertyType count: 1 path: src/Query/Parser.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:\\$queryComponents type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\Parser\:\:\$queryComponents type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/Parser.php - - message: "#^Unreachable statement \\- code above always terminates\\.$#" + message: '#^Strict comparison using \=\=\= between 102 and 102 will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: src/Query/Parser.php + + - + message: '#^Unreachable statement \- code above always terminates\.$#' + identifier: deadCode.unreachable count: 3 path: src/Query/Parser.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\QueryException\\:\\:iterateWithFetchJoinCollectionNotAllowed\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\QueryException\:\:iterateWithFetchJoinCollectionNotAllowed\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/QueryException.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\QueryException\\:\\:iterateWithFetchJoinNotAllowed\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\QueryException\:\:iterateWithFetchJoinNotAllowed\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/QueryException.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\ResultSetMappingBuilder\\:\\:addNamedNativeQueryEntityResultMapping\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\ResultSetMappingBuilder\:\:addNamedNativeQueryEntityResultMapping\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\ResultSetMappingBuilder\\:\\:addNamedNativeQueryMapping\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\ResultSetMappingBuilder\:\:addNamedNativeQueryMapping\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\ResultSetMappingBuilder\\:\\:addNamedNativeQueryResultClassMapping\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\ResultSetMappingBuilder\:\:addNamedNativeQueryResultClassMapping\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\ResultSetMappingBuilder\\:\\:addNamedNativeQueryResultSetMapping\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\ResultSetMappingBuilder\:\:addNamedNativeQueryResultSetMapping\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\ResultSetMappingBuilder\\:\\:isInheritanceSupported\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\ResultSetMappingBuilder\:\:isInheritanceSupported\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Offset 'columns' on array\\{name\\: string, entities\\: array, columns\\: array\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''columns'' on array\{name\: string, entities\: array, columns\: array\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Offset 'entities' on array\\{name\\: string, entities\\: array, columns\\: array\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''entities'' on array\{name\: string, entities\: array, columns\: array\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Parameter \\#2 \\$class of static method Doctrine\\\\ORM\\\\Utility\\\\PersisterHelper\\:\\:getTypeOfColumn\\(\\) expects Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata, Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo given\\.$#" + message: '#^Parameter \#2 \$class of static method Doctrine\\ORM\\Utility\\PersisterHelper\:\:getTypeOfColumn\(\) expects Doctrine\\ORM\\Mapping\\ClassMetadata, Doctrine\\ORM\\Mapping\\ClassMetadataInfo given\.$#' + identifier: argument.type count: 1 path: src/Query/ResultSetMappingBuilder.php - - message: "#^Call to function is_string\\(\\) with Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node will always evaluate to false\\.$#" + message: '#^Instanceof between Doctrine\\ORM\\Query\\AST\\DeleteStatement and Doctrine\\ORM\\Query\\AST\\DeleteStatement will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue count: 1 - path: src/Query/SqlWalker.php + path: src/Query/SqlOutputWalker.php - - message: "#^Cannot assign new offset to array\\\\|string\\.$#" - count: 2 + message: '#^Call to function is_string\(\) with Doctrine\\ORM\\Query\\AST\\Node will always evaluate to false\.$#' + identifier: function.impossibleType + count: 1 path: src/Query/SqlWalker.php - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" - count: 1 + message: '#^Cannot assign new offset to list\\|string\.$#' + identifier: offsetAssign.dimType + count: 2 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:generateClassTableInheritanceJoins\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:generateClassTableInheritanceJoins\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:generateFilterConditionSQL\\(\\) has parameter \\$targetEntity with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:generateFilterConditionSQL\(\) has parameter \$targetEntity with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:getChildDiscriminatorsFromClassMetadata\\(\\) has parameter \\$rootClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:getChildDiscriminatorsFromClassMetadata\(\) has parameter \$rootClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:getMetadataForDqlAlias\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:getMetadataForDqlAlias\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:getQueryComponent\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:getQueryComponent\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:getQueryComponents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:getQueryComponents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:setQueryComponent\\(\\) has parameter \\$queryComponent with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:setQueryComponent\(\) has parameter \$queryComponent with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkConditionalPrimary\\(\\) should return string but return statement is missing\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\SqlWalker\:\:walkConditionalPrimary\(\) should return string but return statement is missing\.$#' + identifier: return.missing count: 1 path: src/Query/SqlWalker.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/Query/SqlWalker.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 6 path: src/Query/SqlWalker.php - - message: "#^Offset 'sourceToTargetKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''sourceToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Query/SqlWalker.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/Query/SqlWalker.php - - message: "#^Parameter \\#1 \\$condTerm of method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkConditionalTerm\\(\\) expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\ConditionalFactor\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\ConditionalPrimary\\|Doctrine\\\\ORM\\\\Query\\\\AST\\\\ConditionalTerm, Doctrine\\\\ORM\\\\Query\\\\AST\\\\Phase2OptimizableConditional given\\.$#" + message: '#^Parameter \#1 \$condTerm of method Doctrine\\ORM\\Query\\SqlWalker\:\:walkConditionalTerm\(\) expects Doctrine\\ORM\\Query\\AST\\ConditionalFactor\|Doctrine\\ORM\\Query\\AST\\ConditionalPrimary\|Doctrine\\ORM\\Query\\AST\\ConditionalTerm, Doctrine\\ORM\\Query\\AST\\Phase2OptimizableConditional given\.$#' + identifier: argument.type count: 1 path: src/Query/SqlWalker.php - - message: "#^Parameter \\#1 \\$identVariable of method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkEntityIdentificationVariable\\(\\) expects string, Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string given\\.$#" + message: '#^Parameter \#1 \$identVariable of method Doctrine\\ORM\\Query\\SqlWalker\:\:walkEntityIdentificationVariable\(\) expects string, Doctrine\\ORM\\Query\\AST\\Node\|string given\.$#' + identifier: argument.type count: 1 path: src/Query/SqlWalker.php - - message: "#^Parameter \\#2 \\$fieldName of method Doctrine\\\\ORM\\\\Query\\\\ResultSetMapping\\:\\:addIndexBy\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$fieldName of method Doctrine\\ORM\\Query\\ResultSetMapping\:\:addIndexBy\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Query/SqlWalker.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:\\$queryComponents type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\SqlWalker\:\:\$queryComponents type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/SqlWalker.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:\\$selectedClasses \\(array\\\\) does not accept non\\-empty\\-array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\SqlWalker\:\:\$selectedClasses \(array\\) does not accept non\-empty\-array\\.$#' + identifier: assign.propertyType count: 1 path: src/Query/SqlWalker.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:\\$selectedClasses with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Query\\SqlWalker\:\:\$selectedClasses with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/SqlWalker.php - - message: "#^Result of && is always false\\.$#" + message: '#^Result of && is always false\.$#' + identifier: booleanAnd.alwaysFalse count: 1 path: src/Query/SqlWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalker\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Strict comparison using \!\=\= between Doctrine\\ORM\\Query\\AST\\WhereClause and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue + count: 1 + path: src/Query/SqlWalker.php + + - + message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#' + identifier: identical.alwaysTrue + count: 1 + path: src/Query/SqlWalker.php + + - + message: '#^Method Doctrine\\ORM\\Query\\TreeWalker\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalker\\:\\:getQueryComponents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalker\:\:getQueryComponents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalker\\:\\:setQueryComponent\\(\\) has parameter \\$queryComponent with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalker\:\:setQueryComponent\(\) has parameter \$queryComponent with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:_getQueryComponents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:_getQueryComponents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:getExecutor\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\Exec\\\\AbstractSqlExecutor but returns null\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:getExecutor\(\) should return Doctrine\\ORM\\Query\\Exec\\AbstractSqlExecutor but returns null\.$#' + identifier: return.type count: 1 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:getMetadataForDqlAlias\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:getMetadataForDqlAlias\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:getQueryComponents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:getQueryComponents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:setQueryComponent\\(\\) has parameter \\$queryComponent with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:setQueryComponent\(\) has parameter \$queryComponent with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerAdapter.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\TreeWalkerAdapter\\:\\:\\$queryComponents type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\TreeWalkerAdapter\:\:\$queryComponents type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerAdapter.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChain\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerChain\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerChain.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChain\\:\\:getExecutor\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\Exec\\\\AbstractSqlExecutor but returns null\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerChain\:\:getExecutor\(\) should return Doctrine\\ORM\\Query\\Exec\\AbstractSqlExecutor but returns null\.$#' + identifier: return.type count: 1 path: src/Query/TreeWalkerChain.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChain\\:\\:getQueryComponents\\(\\) return type has no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerChain\:\:getQueryComponents\(\) return type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerChain.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChain\\:\\:setQueryComponent\\(\\) has parameter \\$queryComponent with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerChain\:\:setQueryComponent\(\) has parameter \$queryComponent with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerChain.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChain\\:\\:\\$queryComponents type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\TreeWalkerChain\:\:\$queryComponents type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Query/TreeWalkerChain.php - - message: "#^Method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChainIterator\\:\\:key\\(\\) should return int but returns int\\|string\\|null\\.$#" + message: '#^Method Doctrine\\ORM\\Query\\TreeWalkerChainIterator\:\:key\(\) should return int but returns int\|string\|null\.$#' + identifier: return.type count: 1 path: src/Query/TreeWalkerChainIterator.php - - message: "#^Parameter \\#2 \\$value \\(string\\) of method Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChainIterator\\:\\:offsetSet\\(\\) should be compatible with parameter \\$value \\(Doctrine\\\\ORM\\\\Query\\\\TreeWalker\\) of method ArrayAccess\\\\:\\:offsetSet\\(\\)$#" + message: '#^Parameter \#2 \$value \(string\) of method Doctrine\\ORM\\Query\\TreeWalkerChainIterator\:\:offsetSet\(\) should be compatible with parameter \$value \(Doctrine\\ORM\\Query\\TreeWalker\) of method ArrayAccess\\:\:offsetSet\(\)$#' + identifier: method.childParameterType count: 1 path: src/Query/TreeWalkerChainIterator.php - - message: "#^Property Doctrine\\\\ORM\\\\Query\\\\TreeWalkerChainIterator\\:\\:\\$walkers \\(array\\\\>\\) does not accept array\\\\.$#" + message: '#^Property Doctrine\\ORM\\Query\\TreeWalkerChainIterator\:\:\$walkers \(array\\>\) does not accept array\\.$#' + identifier: assign.propertyType count: 2 path: src/Query/TreeWalkerChainIterator.php - - message: "#^Argument of an invalid type array\\\\|object\\|string\\>\\|object\\|string\\|false supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type array\\|object\|string\>\|object\|string\|false supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/QueryBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\QueryBuilder\\:\\:getParameter\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\Parameter\\|null but returns Doctrine\\\\ORM\\\\Query\\\\Parameter\\|false\\|null\\.$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\Common\\\\Collections\\\\Criteria'' and ''orderings'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/QueryBuilder.php - - message: "#^PHPDoc tag @param references unknown parameter\\: \\$where$#" + message: '#^Method Doctrine\\ORM\\QueryBuilder\:\:getParameter\(\) should return Doctrine\\ORM\\Query\\Parameter\|null but returns Doctrine\\ORM\\Query\\Parameter\|false\|null\.$#' + identifier: return.type + count: 1 + path: src/QueryBuilder.php + + - + message: '#^PHPDoc tag @param references unknown parameter\: \$where$#' + identifier: parameter.notFound count: 2 path: src/QueryBuilder.php - - message: "#^Parameter \\#2 \\$dqlPart of method Doctrine\\\\ORM\\\\QueryBuilder\\:\\:add\\(\\) expects array\\<'join'\\|int, array\\\\|string\\>\\|object\\|string, non\\-empty\\-array\\ given\\.$#" + message: '#^Parameter \#2 \$dqlPart of method Doctrine\\ORM\\QueryBuilder\:\:add\(\) expects array\<''join''\|int\<0, max\>, array\\|string\>\|object\|string, non\-empty\-array\ given\.$#' + identifier: argument.type count: 2 path: src/QueryBuilder.php - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type count: 2 path: src/QueryBuilder.php - - message: "#^Method Doctrine\\\\ORM\\\\Repository\\\\DefaultRepositoryFactory\\:\\:createRepository\\(\\) return type with generic interface Doctrine\\\\Persistence\\\\ObjectRepository does not specify its types\\: T$#" + message: '#^Instanceof between Doctrine\\ORM\\EntityRepository and Doctrine\\ORM\\EntityRepository will always evaluate to true\.$#' + identifier: instanceof.alwaysTrue + count: 1 + path: src/Repository/DefaultRepositoryFactory.php + + - + message: '#^Method Doctrine\\ORM\\Repository\\DefaultRepositoryFactory\:\:createRepository\(\) return type with generic interface Doctrine\\Persistence\\ObjectRepository does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Repository/DefaultRepositoryFactory.php - - message: "#^Property Doctrine\\\\ORM\\\\Repository\\\\DefaultRepositoryFactory\\:\\:\\$repositoryList with generic interface Doctrine\\\\Persistence\\\\ObjectRepository does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Repository\\DefaultRepositoryFactory\:\:\$repositoryList with generic interface Doctrine\\Persistence\\ObjectRepository does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Repository/DefaultRepositoryFactory.php - - message: "#^Class Doctrine\\\\Common\\\\Cache\\\\ApcCache not found\\.$#" + message: '#^Class Doctrine\\Common\\Cache\\ApcCache not found\.$#' + identifier: class.notFound count: 1 path: src/Tools/Console/Command/ClearCache/QueryCommand.php - - message: "#^Class Doctrine\\\\Common\\\\Cache\\\\XcacheCache not found\\.$#" + message: '#^Class Doctrine\\Common\\Cache\\XcacheCache not found\.$#' + identifier: class.notFound count: 1 path: src/Tools/Console/Command/ClearCache/QueryCommand.php - - message: "#^Class Doctrine\\\\Common\\\\Cache\\\\ApcCache not found\\.$#" + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\ORM\\\\Configuration'' and ''getResultCacheImpl'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/Console/Command/ClearCache/ResultCommand.php + + - + message: '#^Class Doctrine\\Common\\Cache\\ApcCache not found\.$#' + identifier: class.notFound count: 1 path: src/Tools/Console/Command/ClearCache/ResultCommand.php - - message: "#^Class Doctrine\\\\Common\\\\Cache\\\\XcacheCache not found\\.$#" + message: '#^Class Doctrine\\Common\\Cache\\XcacheCache not found\.$#' + identifier: class.notFound count: 1 path: src/Tools/Console/Command/ClearCache/ResultCommand.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php + + - + message: '#^Parameter \#1 \$filename of function is_readable expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php - - message: "#^Parameter \\#1 \\$filename of function is_readable expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$from of class Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema constructor expects list\\|string, array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php - - message: "#^Parameter \\#1 \\$metadata of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:setMetadata\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$metadata of method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:setMetadata\(\) expects list\, non\-empty\-list\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php - - message: "#^Parameter \\#2 \\$destPath of method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\ConvertDoctrine1SchemaCommand\\:\\:convertDoctrine1Schema\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$destPath of method Doctrine\\ORM\\Tools\\Console\\Command\\ConvertDoctrine1SchemaCommand\:\:convertDoctrine1Schema\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertDoctrine1SchemaCommand.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$name\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#' + identifier: property.notFound + count: 1 + path: src/Tools/Console/Command/ConvertMappingCommand.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Connection'' and ''createSchemaManager'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Tools/Console/Command/ConvertMappingCommand.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertMappingCommand.php - - message: "#^Parameter \\#1 \\$filename of function is_writable expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function is_writable expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertMappingCommand.php - - message: "#^Parameter \\#1 \\$metadata of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:setMetadata\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$metadata of method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:setMetadata\(\) expects list\, non\-empty\-array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertMappingCommand.php - - message: "#^Parameter \\#2 \\$destPath of method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\ConvertMappingCommand\\:\\:getExporter\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$destPath of method Doctrine\\ORM\\Tools\\Console\\Command\\ConvertMappingCommand\:\:getExporter\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/ConvertMappingCommand.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$name\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#' + identifier: property.notFound count: 1 path: src/Tools/Console/Command/GenerateEntitiesCommand.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateEntitiesCommand.php - - message: "#^Parameter \\#1 \\$filename of function is_writable expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function is_writable expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateEntitiesCommand.php - - message: "#^Parameter \\#1 \\$metadatas of method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generate\\(\\) expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$metadatas of method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generate\(\) expects list\, non\-empty\-array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateEntitiesCommand.php - - message: "#^Parameter \\#2 \\$outputDirectory of method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generate\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$outputDirectory of method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generate\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateEntitiesCommand.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$name\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#' + identifier: property.notFound count: 1 path: src/Tools/Console/Command/GenerateProxiesCommand.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateProxiesCommand.php - - message: "#^Parameter \\#1 \\$filename of function is_writable expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function is_writable expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateProxiesCommand.php - - message: "#^Parameter \\#2 \\$proxyDir of method Doctrine\\\\ORM\\\\Proxy\\\\ProxyFactory\\:\\:generateProxyClasses\\(\\) expects string\\|null, string\\|false given\\.$#" + message: '#^Parameter \#2 \$proxyDir of method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:generateProxyClasses\(\) expects string\|null, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateProxiesCommand.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$customRepositoryClassName\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$customRepositoryClassName\.$#' + identifier: property.notFound count: 1 path: src/Tools/Console/Command/GenerateRepositoriesCommand.php - - message: "#^Parameter \\#1 \\$filename of function file_exists expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function file_exists expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateRepositoriesCommand.php - - message: "#^Parameter \\#1 \\$filename of function is_writable expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$filename of function is_writable expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateRepositoriesCommand.php - - message: "#^Parameter \\#2 \\$outputDirectory of method Doctrine\\\\ORM\\\\Tools\\\\EntityRepositoryGenerator\\:\\:writeEntityRepositoryClass\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#2 \$outputDirectory of method Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:writeEntityRepositoryClass\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/GenerateRepositoriesCommand.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\MappingDescribeCommand\\:\\:formatMappings\\(\\) has parameter \\$propertyMappings with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\Command\\MappingDescribeCommand\:\:formatMappings\(\) has parameter \$propertyMappings with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Tools/Console/Command/MappingDescribeCommand.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\MappingDescribeCommand\\:\\:formatValue\\(\\) should return string but returns string\\|false\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\Command\\MappingDescribeCommand\:\:formatValue\(\) should return string but returns string\|false\.$#' + identifier: return.type count: 1 path: src/Tools/Console/Command/MappingDescribeCommand.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\MappingDescribeCommand\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\Command\\MappingDescribeCommand\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Console/Command/MappingDescribeCommand.php - - message: "#^Parameter \\#1 \\$entityListeners of method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\Command\\\\MappingDescribeCommand\\:\\:formatEntityListeners\\(\\) expects array\\, array\\\\>\\> given\\.$#" + message: '#^Parameter \#1 \$entityListeners of method Doctrine\\ORM\\Tools\\Console\\Command\\MappingDescribeCommand\:\:formatEntityListeners\(\) expects list\, array\\> given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/MappingDescribeCommand.php - - message: "#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(class\\-string\\)\\: bool\\)\\|null, Closure\\(mixed\\)\\: \\(0\\|1\\|false\\) given\\.$#" + message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(class\-string\)\: bool\)\|null, Closure\(mixed\)\: \(0\|1\|false\) given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/Command/MappingDescribeCommand.php - - message: "#^Parameter \\#1 \\$helpers of class Symfony\\\\Component\\\\Console\\\\Helper\\\\HelperSet constructor expects array\\, array\\ given\\.$#" + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:createSchema\(\) expects list\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Console/Command/SchemaTool/CreateCommand.php + + - + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:getCreateSchemaSql\(\) expects list\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Console/Command/SchemaTool/CreateCommand.php + + - + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:dropSchema\(\) expects list\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Console/Command/SchemaTool/DropCommand.php + + - + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:getDropSchemaSQL\(\) expects list\, array\ given\.$#' + identifier: argument.type + count: 2 + path: src/Tools/Console/Command/SchemaTool/DropCommand.php + + - + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:getUpdateSchemaSql\(\) expects list\, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Console/Command/SchemaTool/UpdateCommand.php + + - + message: '#^Parameter \#1 \$helpers of class Symfony\\Component\\Console\\Helper\\HelperSet constructor expects array\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Console/ConsoleRunner.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\MetadataFilter\\:\\:__construct\\(\\) has parameter \\$metadata with generic class ArrayIterator but does not specify its types\\: TKey, TValue$#" + message: '#^Class Doctrine\\ORM\\Tools\\Console\\MetadataFilter extends generic class FilterIterator but does not specify its types\: TKey, TValue, TIterator$#' + identifier: missingType.generics + count: 1 + path: src/Tools/Console/MetadataFilter.php + + - + message: '#^Method Doctrine\\ORM\\Tools\\Console\\MetadataFilter\:\:__construct\(\) has parameter \$metadata with generic class ArrayIterator but does not specify its types\: TKey, TValue$#' + identifier: missingType.generics count: 1 path: src/Tools/Console/MetadataFilter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\MetadataFilter\\:\\:filter\\(\\) has parameter \\$metadatas with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\MetadataFilter\:\:filter\(\) has parameter \$metadatas with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Console/MetadataFilter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\MetadataFilter\\:\\:filter\\(\\) return type with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\MetadataFilter\:\:filter\(\) return type with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Console/MetadataFilter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Console\\\\MetadataFilter\\:\\:getInnerIterator\\(\\) return type with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Console\\MetadataFilter\:\:getInnerIterator\(\) return type with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Console/MetadataFilter.php - - message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + message: '#^Argument of an invalid type list\\|false supplied for foreach, only iterables are supported\.$#' + identifier: foreach.nonIterable count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertColumn\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertColumn\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertColumns\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertColumns\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertIndexes\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertIndexes\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertRelations\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertRelations\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertTableName\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertTableName\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertToClassMetadataInfo\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertToClassMetadataInfo\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:getMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:getMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\ORM\\\\Tools\\\\ConvertDoctrine1Schema\\:\\:convertToClassMetadataInfo\\(\\) expects class\\-string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\ORM\\Tools\\ConvertDoctrine1Schema\:\:convertToClassMetadataInfo\(\) expects class\-string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Parameter \\#1 \\$input of static method Symfony\\\\Component\\\\Yaml\\\\Yaml\\:\\:parse\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$input of static method Symfony\\Component\\Yaml\\Yaml\:\:parse\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 2 path: src/Tools/ConvertDoctrine1Schema.php - - message: "#^Parameter \\#1 \\$string of function html_entity_decode expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$string of function html_entity_decode expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Debug.php - - message: "#^Parameter \\#1 \\$stream of function fclose expects resource, resource\\|false given\\.$#" + message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/DebugUnitOfWorkListener.php - - message: "#^Parameter \\#1 \\$stream of function fwrite expects resource, resource\\|false given\\.$#" + message: '#^Parameter \#1 \$stream of function fwrite expects resource, resource\|false given\.$#' + identifier: argument.type count: 14 path: src/Tools/DebugUnitOfWorkListener.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generate\\(\\) has parameter \\$metadatas with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generate\(\) has parameter \$metadatas with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateAssociationMappingPropertyDocBlock\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateAssociationMappingPropertyDocBlock\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateDiscriminatorColumnAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateDiscriminatorColumnAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateDiscriminatorMapAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateDiscriminatorMapAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEmbeddableConstructor\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEmbeddableConstructor\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityAssociationMappingProperties\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityAssociationMappingProperties\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityBody\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityBody\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityClass\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityClass\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityClassName\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityClassName\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityConstructor\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityConstructor\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityDocBlock\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityDocBlock\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityEmbeddedProperties\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityEmbeddedProperties\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityFieldMappingProperties\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityFieldMappingProperties\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityLifecycleCallbackMethods\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityLifecycleCallbackMethods\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityListenerAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityListenerAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityNamespace\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityNamespace\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityStubMethod\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityStubMethod\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateEntityStubMethods\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateEntityStubMethods\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateFieldMappingPropertyDocBlock\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateFieldMappingPropertyDocBlock\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateInheritanceAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateInheritanceAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateLifecycleCallbackMethod\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateLifecycleCallbackMethod\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateTableAnnotation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateTableAnnotation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:generateUpdatedEntityClass\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:generateUpdatedEntityClass\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:getClassName\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:getClassName\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:getNamespace\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:getNamespace\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:getTraits\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:getTraits\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:getTraits\\(\\) should return array\\\\> but returns array\\\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:getTraits\(\) should return array\\> but returns array\\.$#' + identifier: return.type count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:hasMethod\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:hasMethod\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:hasNamespace\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:hasNamespace\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:hasProperty\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:hasProperty\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:writeEntityClass\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\EntityGenerator\:\:writeEntityClass\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Offset 'allocationSize' on array\\{sequenceName\\: string, allocationSize\\: string, initialValue\\: string, quoted\\?\\: mixed\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''allocationSize'' on array\{sequenceName\: string, allocationSize\: string, initialValue\: string, quoted\?\: mixed\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Offset 'initialValue' on array\\{sequenceName\\: string, allocationSize\\: string, initialValue\\: string, quoted\\?\\: mixed\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''initialValue'' on array\{sequenceName\: string, allocationSize\: string, initialValue\: string, quoted\?\: mixed\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Offset 'name' on array\\{name\\: string, schema\\?\\: string, indexes\\?\\: array, uniqueConstraints\\?\\: array, options\\?\\: array\\, quoted\\?\\: bool\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''name'' on array\{name\: string, schema\?\: string, indexes\?\: array, uniqueConstraints\?\: array, options\?\: array\, quoted\?\: bool\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Offset 'sequenceName' on array\\{sequenceName\\: string, allocationSize\\: string, initialValue\\: string, quoted\\?\\: mixed\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''sequenceName'' on array\{sequenceName\: string, allocationSize\: string, initialValue\: string, quoted\?\: mixed\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#1 \\$haystack of function strrpos expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$haystack of function strrpos expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\\\|T of object, string given\\.$#" + message: '#^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\\|T of object, string given\.$#' + identifier: argument.type count: 3 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#1 \\$src of method Doctrine\\\\ORM\\\\Tools\\\\EntityGenerator\\:\\:parseTokensInEntityFile\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$src of method Doctrine\\ORM\\Tools\\EntityGenerator\:\:parseTokensInEntityFile\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$string of function substr expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" + message: '#^Parameter \#1 \.\.\.\$arg1 of function max expects non\-empty\-array, list\\> given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/EntityGenerator.php + + - + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type count: 2 path: src/Tools/EntityGenerator.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$lifecycleCallbacks \\(array\\\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$lifecycleCallbacks \(array\\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: src/Tools/EntityGenerator.php - - message: "#^Parameter \\#1 \\$fullClassName of method Doctrine\\\\ORM\\\\Tools\\\\EntityRepositoryGenerator\\:\\:generateClassName\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$fullClassName of method Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:generateClassName\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityRepositoryGenerator.php - - message: "#^Parameter \\#1 \\$fullClassName of method Doctrine\\\\ORM\\\\Tools\\\\EntityRepositoryGenerator\\:\\:generateEntityRepositoryNamespace\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$fullClassName of method Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:generateEntityRepositoryNamespace\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityRepositoryGenerator.php - - message: "#^Parameter \\#1 \\$fullClassName of method Doctrine\\\\ORM\\\\Tools\\\\EntityRepositoryGenerator\\:\\:getClassNamespace\\(\\) expects class\\-string, string given\\.$#" + message: '#^Parameter \#1 \$fullClassName of method Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:getClassNamespace\(\) expects class\-string, string given\.$#' + identifier: argument.type count: 1 path: src/Tools/EntityRepositoryGenerator.php - - message: "#^Property Doctrine\\\\ORM\\\\Tools\\\\EntityRepositoryGenerator\\:\\:\\$repositoryName \\(class\\-string\\|null\\) does not accept string\\.$#" + message: '#^Property Doctrine\\ORM\\Tools\\EntityRepositoryGenerator\:\:\$repositoryName \(class\-string\|null\) does not accept string\.$#' + identifier: assign.propertyType count: 1 path: src/Tools/EntityRepositoryGenerator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Event\\\\GenerateSchemaTableEventArgs\\:\\:__construct\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Event\\GenerateSchemaTableEventArgs\:\:__construct\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Event/GenerateSchemaTableEventArgs.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Event\\\\GenerateSchemaTableEventArgs\\:\\:getClassMetadata\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Event\\GenerateSchemaTableEventArgs\:\:getClassMetadata\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Event/GenerateSchemaTableEventArgs.php - - message: "#^Property Doctrine\\\\ORM\\\\Tools\\\\Event\\\\GenerateSchemaTableEventArgs\\:\\:\\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Tools\\Event\\GenerateSchemaTableEventArgs\:\:\$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Event/GenerateSchemaTableEventArgs.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\ClassMetadataExporter\\:\\:getExporter\\(\\) should return Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter but returns object\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\ClassMetadataExporter\:\:getExporter\(\) should return Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter but returns object\.$#' + identifier: return.type count: 1 path: src/Tools/Export/ClassMetadataExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:_generateOutputPath\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:_generateOutputPath\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AbstractExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:_getIdGeneratorTypeString\\(\\) should return string but return statement is missing\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:_getIdGeneratorTypeString\(\) should return string but return statement is missing\.$#' + identifier: return.missing count: 1 path: src/Tools/Export/Driver/AbstractExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:exportClassMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:exportClassMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AbstractExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:setMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:setMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AbstractExporter.php - - message: "#^Property Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:\\$_metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:\$_metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AbstractExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AnnotationExporter\\:\\:_generateOutputPath\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AnnotationExporter\:\:_generateOutputPath\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AnnotationExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AnnotationExporter\\:\\:exportClassMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\AnnotationExporter\:\:exportClassMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/AnnotationExporter.php - - message: "#^If condition is always true\\.$#" + message: '#^If condition is always true\.$#' + identifier: if.alwaysTrue count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\PhpExporter\\:\\:exportClassMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\PhpExporter\:\:exportClassMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\PhpExporter\\:\\:processEntityListeners\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\PhpExporter\:\:processEntityListeners\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Offset 'orphanRemoval' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''orphanRemoval'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Parameter \\#1 \\$policy of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:_getChangeTrackingPolicyString\\(\\) expects 1\\|2\\|3, int\\\\|int\\<1, max\\> given\\.$#" + message: '#^Parameter \#1 \$policy of method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:_getChangeTrackingPolicyString\(\) expects 1\|2\|3, int\\|int\<1, max\> given\.$#' + identifier: argument.type count: 1 path: src/Tools/Export/Driver/PhpExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\XmlExporter\\:\\:asXml\\(\\) should return string but returns string\\|false\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\XmlExporter\:\:asXml\(\) should return string but returns string\|false\.$#' + identifier: return.type count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\XmlExporter\\:\\:exportClassMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\XmlExporter\:\:exportClassMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\XmlExporter\\:\\:exportSequenceInformation\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\XmlExporter\:\:exportSequenceInformation\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\XmlExporter\\:\\:generateEntityListenerXml\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\XmlExporter\:\:generateEntityListenerXml\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\XmlExporter\\:\\:processEntityListeners\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\XmlExporter\:\:processEntityListeners\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Offset 'name' on array\\{name\\: string, schema\\?\\: string, indexes\\?\\: array, uniqueConstraints\\?\\: array, options\\?\\: array\\, quoted\\?\\: bool\\} in isset\\(\\) always exists and is not nullable\\.$#" + message: '#^Offset ''name'' on array\{name\: string, schema\?\: string, indexes\?\: array, uniqueConstraints\?\: array, options\?\: array\, quoted\?\: bool\} in isset\(\) always exists and is not nullable\.$#' + identifier: isset.offset count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Parameter \\#1 \\$policy of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:_getChangeTrackingPolicyString\\(\\) expects 1\\|2\\|3, int given\\.$#" + message: '#^Parameter \#1 \$policy of method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:_getChangeTrackingPolicyString\(\) expects 1\|2\|3, int given\.$#' + identifier: argument.type count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Parameter \\#1 \\$source of method DOMDocument\\:\\:loadXML\\(\\) expects string, string\\|false given\\.$#" + message: '#^Parameter \#1 \$source of method DOMDocument\:\:loadXML\(\) expects string, string\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$lifecycleCallbacks \\(array\\\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$lifecycleCallbacks \(array\\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Right side of && is always true\\.$#" + message: '#^Right side of && is always true\.$#' + identifier: booleanAnd.rightAlwaysTrue count: 1 path: src/Tools/Export/Driver/XmlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\YamlExporter\\:\\:exportClassMetadata\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\YamlExporter\:\:exportClassMetadata\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\YamlExporter\\:\\:processEntityListeners\\(\\) has parameter \\$metadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\YamlExporter\:\:processEntityListeners\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\YamlExporter\\:\\:processEntityListeners\\(\\) should return array\\{entityListeners\\: array\\\\>\\} but returns array\\\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Export\\Driver\\YamlExporter\:\:processEntityListeners\(\) should return array\{entityListeners\: array\\>\} but returns array\\.$#' + identifier: return.type count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Offset 'orphanRemoval' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''orphanRemoval'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 2 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Parameter \\#1 \\$array of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\YamlExporter\\:\\:processEntityListenerConfig\\(\\) expects array\\{entityListeners\\: array\\\\>\\}, non\\-empty\\-array\\ given\\.$#" + message: '#^Parameter \#1 \$array of method Doctrine\\ORM\\Tools\\Export\\Driver\\YamlExporter\:\:processEntityListenerConfig\(\) expects array\{entityListeners\: array\\>\}, non\-empty\-array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Parameter \\#1 \\$policy of method Doctrine\\\\ORM\\\\Tools\\\\Export\\\\Driver\\\\AbstractExporter\\:\\:_getChangeTrackingPolicyString\\(\\) expects 1\\|2\\|3, int\\\\|int\\<2, max\\> given\\.$#" + message: '#^Parameter \#1 \$policy of method Doctrine\\ORM\\Tools\\Export\\Driver\\AbstractExporter\:\:_getChangeTrackingPolicyString\(\) expects 1\|2\|3, int\\|int\<2, max\> given\.$#' + identifier: argument.type count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$lifecycleCallbacks \\(array\\\\>\\) in isset\\(\\) is not nullable\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$lifecycleCallbacks \(array\\>\) in isset\(\) is not nullable\.$#' + identifier: isset.property count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Property Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo\\\\:\\:\\$table \\(array\\\\) on left side of \\?\\? is not nullable\\.$#" + message: '#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:\$table \(array\\) on left side of \?\? is not nullable\.$#' + identifier: nullCoalesce.property count: 1 path: src/Tools/Export/Driver/YamlExporter.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Pagination\\\\CountOutputWalker\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Pagination\\CountOutputWalker\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Tools/Pagination/CountOutputWalker.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/Pagination/CountOutputWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Pagination\\\\LimitSubqueryOutputWalker\\:\\:__construct\\(\\) has parameter \\$queryComponents with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Pagination\\LimitSubqueryOutputWalker\:\:__construct\(\) has parameter \$queryComponents with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Tools/Pagination/LimitSubqueryOutputWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Pagination\\\\LimitSubqueryOutputWalker\\:\\:walkSubSelect\\(\\) has no return type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Pagination\\LimitSubqueryOutputWalker\:\:walkSubSelect\(\) has no return type specified\.$#' + identifier: missingType.return count: 1 path: src/Tools/Pagination/LimitSubqueryOutputWalker.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\Pagination\\\\LimitSubqueryOutputWalker\\:\\:walkSubSelect\\(\\) has parameter \\$subselect with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\Pagination\\LimitSubqueryOutputWalker\:\:walkSubSelect\(\) has parameter \$subselect with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/Tools/Pagination/LimitSubqueryOutputWalker.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/Pagination/LimitSubqueryOutputWalker.php - - message: "#^Parameter \\#3 \\$length of function substr expects int\\|null, int\\|false given\\.$#" + message: '#^Parameter \#3 \$length of function substr expects int\|null, int\|false given\.$#' + identifier: argument.type count: 1 path: src/Tools/Pagination/LimitSubqueryOutputWalker.php - - message: "#^PHPDoc tag @var for variable \\$parameters contains generic interface Doctrine\\\\Common\\\\Collections\\\\Collection but does not specify its types\\: TKey, T$#" + message: '#^PHPDoc tag @var for variable \$parameters contains generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/Tools/Pagination/Paginator.php - - message: "#^Parameter \\#1 \\$parameters of method Doctrine\\\\ORM\\\\AbstractQuery\\:\\:setParameters\\(\\) expects array\\|Doctrine\\\\Common\\\\Collections\\\\ArrayCollection\\, Doctrine\\\\Common\\\\Collections\\\\Collection&iterable\\ given\\.$#" + message: '#^Parameter \#1 \$parameters of method Doctrine\\ORM\\AbstractQuery\:\:setParameters\(\) expects array\\|Doctrine\\Common\\Collections\\ArrayCollection\, Doctrine\\Common\\Collections\\Collection&iterable\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/Pagination/Paginator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ResolveTargetEntityListener\\:\\:remapAssociation\\(\\) has parameter \\$classMetadata with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\ResolveTargetEntityListener\:\:remapAssociation\(\) has parameter \$classMetadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/ResolveTargetEntityListener.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\ResolveTargetEntityListener\\:\\:remapAssociation\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\ResolveTargetEntityListener\:\:remapAssociation\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Tools/ResolveTargetEntityListener.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\Persistence\\\\Mapping\\\\AbstractClassMetadataFactory\\\\:\\:setMetadataFor\\(\\) expects class\\-string, \\(int\\|string\\) given\\.$#" + message: '#^Parameter \#1 \$className of method Doctrine\\Persistence\\Mapping\\AbstractClassMetadataFactory\\:\:setMetadataFor\(\) expects class\-string, \(int\|string\) given\.$#' + identifier: argument.type count: 1 path: src/Tools/ResolveTargetEntityListener.php - - message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" + message: '#^Call to function is_numeric\(\) with int\<0, max\> will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Connection'' and ''createSchemaManager'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform'' and ''getAlterSchemaSQL'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager'' and ''introspectSchema'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Schema\\AbstractSchemaManager and ''createComparator'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Schema\\AbstractSchemaManager and ''introspectSchema'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Schema\\Index and ''isFulfilledBy'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Call to function method_exists\(\) with Doctrine\\DBAL\\Schema\\Table and ''modifyColumn'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:addDiscriminatorColumnDefinition\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:addDiscriminatorColumnDefinition\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:createSchema\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:createSchema\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:dropSchema\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:dropSchema\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherColumn\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherColumn\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherColumns\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherColumns\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherRelationJoinColumns\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherRelationJoinColumns\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherRelationJoinColumns\\(\\) has parameter \\$mapping with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherRelationJoinColumns\(\) has parameter \$mapping with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherRelationsSql\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherRelationsSql\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getCreateSchemaSql\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getCreateSchemaSql\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getDefiningClass\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getDefiningClass\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getDefiningClass\\(\\) return type with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getDefiningClass\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getDropSchemaSQL\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getDropSchemaSQL\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getIndexColumns\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getIndexColumns\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getSchemaFromMetadata\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getSchemaFromMetadata\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:getUpdateSchemaSql\\(\\) has parameter \\$classes with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:getUpdateSchemaSql\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:processingNotRequired\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:processingNotRequired\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaTool.php - - message: "#^Negated boolean expression is always false\\.$#" + message: '#^Negated boolean expression is always false\.$#' + identifier: booleanNot.alwaysFalse count: 1 path: src/Tools/SchemaTool.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaTool.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 3 path: src/Tools/SchemaTool.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaTool.php - - message: "#^Offset 'name' does not exist on array\\{name\\: string, fieldName\\: string, type\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|array\\{type\\: 'string', length\\: 255\\}\\.$#" + message: '#^Offset ''name'' might not exist on array\{name\: string, fieldName\: string, type\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|array\{type\: ''string'', length\: 255\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaTool.php - - message: "#^Offset 'precision' does not exist on array\\{type\\: 'decimal', fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''precision'' might not exist on array\{type\: ''decimal'', fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaTool.php - - message: "#^Offset 'scale' does not exist on array\\{type\\: 'decimal', fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''scale'' might not exist on array\{type\: ''decimal'', fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaTool.php - - message: "#^Parameter \\#1 \\$mapping of method Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:gatherColumnOptions\\(\\) expects array\\{name\\: string, fieldName\\: string, type\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|array\\{name\\: string, referencedColumnName\\: string, unique\\?\\: bool, quoted\\?\\: bool, fieldName\\?\\: string, onDelete\\?\\: string, columnDefinition\\?\\: string, nullable\\?\\: bool\\}\\|array\\{type\\: string, fieldName\\: string, columnName\\: string, length\\?\\: int, id\\?\\: bool, nullable\\?\\: bool, notInsertable\\?\\: bool, notUpdatable\\?\\: bool, \\.\\.\\.\\}, array\\{name\\: string, fieldName\\: string, type\\: string, length\\?\\: int, columnDefinition\\?\\: string\\|null, enumType\\?\\: class\\-string\\\\|null, options\\?\\: array\\\\}\\|array\\{type\\: 'string', length\\: 255\\} given\\.$#" + message: '#^Parameter \#1 \$classes of method Doctrine\\ORM\\Tools\\SchemaTool\:\:getUpdateSchemaSql\(\) expects list\, array\ given\.$#' + identifier: argument.type count: 1 path: src/Tools/SchemaTool.php - - message: "#^Property Doctrine\\\\ORM\\\\Tools\\\\SchemaTool\\:\\:\\$schemaManager with generic class Doctrine\\\\DBAL\\\\Schema\\\\AbstractSchemaManager does not specify its types\\: T$#" + message: '#^Parameter \#1 \$mapping of method Doctrine\\ORM\\Tools\\SchemaTool\:\:gatherColumnOptions\(\) expects array\{name\: string, fieldName\: string, type\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|array\{name\: string, referencedColumnName\: string, unique\?\: bool, quoted\?\: bool, fieldName\?\: string, onDelete\?\: string, columnDefinition\?\: string, nullable\?\: bool\}\|array\{type\: string, fieldName\: string, columnName\: string, length\?\: int, id\?\: bool, nullable\?\: bool, notInsertable\?\: bool, notUpdatable\?\: bool, \.\.\.\}, array\{name\: string, fieldName\: string, type\: string, length\?\: int, columnDefinition\?\: string\|null, enumType\?\: class\-string\\|null, options\?\: array\\}\|array\{type\: ''string'', length\: 255\} given\.$#' + identifier: argument.type count: 1 path: src/Tools/SchemaTool.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaValidator\\:\\:validateClass\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Tools\\SchemaTool\:\:\$schemaManager with generic class Doctrine\\DBAL\\Schema\\AbstractSchemaManager does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Tools/SchemaTool.php + + - + message: '#^Method Doctrine\\ORM\\Tools\\SchemaValidator\:\:validateClass\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/Tools/SchemaValidator.php + + - + message: '#^Method Doctrine\\ORM\\Tools\\SchemaValidator\:\:validatePropertiesTypes\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadataInfo but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Method Doctrine\\\\ORM\\\\Tools\\\\SchemaValidator\\:\\:validatePropertiesTypes\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadataInfo but does not specify its types\\: T$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Offset 'relationToSourceKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''relationToTargetKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Offset 'relationToTargetKey…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Strict comparison using \!\=\= between array and null will always evaluate to true\.$#' + identifier: notIdentical.alwaysTrue count: 1 path: src/Tools/SchemaValidator.php - - message: "#^Parameter \\#1 \\$pool of static method Doctrine\\\\Common\\\\Cache\\\\Psr6\\\\DoctrineProvider\\:\\:wrap\\(\\) expects Psr\\\\Cache\\\\CacheItemPoolInterface, Doctrine\\\\Common\\\\Cache\\\\ApcuCache\\|Doctrine\\\\Common\\\\Cache\\\\ArrayCache\\|Doctrine\\\\Common\\\\Cache\\\\MemcachedCache\\|Doctrine\\\\Common\\\\Cache\\\\RedisCache\\|Symfony\\\\Component\\\\Cache\\\\Adapter\\\\ApcuAdapter\\|Symfony\\\\Component\\\\Cache\\\\Adapter\\\\ArrayAdapter\\|Symfony\\\\Component\\\\Cache\\\\Adapter\\\\MemcachedAdapter\\|Symfony\\\\Component\\\\Cache\\\\Adapter\\\\RedisAdapter given\\.$#" + message: '#^Parameter \#1 \$paths of method Doctrine\\ORM\\Configuration\:\:newDefaultAnnotationDriver\(\) expects list\\|string, array\ given\.$#' + identifier: argument.type + count: 1 + path: src/Tools/Setup.php + + - + message: '#^Parameter \#1 \$pool of static method Doctrine\\Common\\Cache\\Psr6\\DoctrineProvider\:\:wrap\(\) expects Psr\\Cache\\CacheItemPoolInterface, Doctrine\\Common\\Cache\\ApcuCache\|Doctrine\\Common\\Cache\\ArrayCache\|Doctrine\\Common\\Cache\\MemcachedCache\|Doctrine\\Common\\Cache\\RedisCache\|Symfony\\Component\\Cache\\Adapter\\ApcuAdapter\|Symfony\\Component\\Cache\\Adapter\\ArrayAdapter\|Symfony\\Component\\Cache\\Adapter\\MemcachedAdapter\|Symfony\\Component\\Cache\\Adapter\\RedisAdapter given\.$#' + identifier: argument.type count: 1 path: src/Tools/Setup.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:computeAssociationChanges\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^ Parameter \#3 \$changeSet of class Doctrine\\ORM\\Event\\PreUpdateEventArgs constructor is passed by reference, so it expects variables only$#' + identifier: argument.byRef + count: 1 + path: src/UnitOfWork.php + + - + message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 2 + path: src/UnitOfWork.php + + - + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:computeAssociationChanges\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:convertSingleFieldIdentifierToPHPValue\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:convertSingleFieldIdentifierToPHPValue\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:doMerge\\(\\) has parameter \\$assoc with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:doMerge\(\) has parameter \$assoc with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:doMerge\\(\\) has parameter \\$prevManagedCopy with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:doMerge\(\) has parameter \$prevManagedCopy with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:eagerLoadCollections\\(\\) has parameter \\$collections with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:eagerLoadCollections\(\) has parameter \$collections with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:getCollectionPersister\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:getCollectionPersister\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:getEntityChangeSet\\(\\) return type with generic class Doctrine\\\\ORM\\\\PersistentCollection does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:getEntityChangeSet\(\) return type with generic class Doctrine\\ORM\\PersistentCollection does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:hasMissingIdsWhichAreForeignKeys\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:hasMissingIdsWhichAreForeignKeys\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:isCollectionScheduledForDeletion\\(\\) has parameter \\$coll with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:isCollectionScheduledForDeletion\(\) has parameter \$coll with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:loadCollection\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:loadCollection\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:newInstance\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:newInstance\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:normalizeIdentifier\\(\\) has parameter \\$targetClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:normalizeIdentifier\(\) has parameter \$targetClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:scheduleCollectionDeletion\\(\\) has parameter \\$coll with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:scheduleCollectionDeletion\(\) has parameter \$coll with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:scheduleCollectionForBatchLoading\\(\\) has parameter \\$collection with generic class Doctrine\\\\ORM\\\\PersistentCollection but does not specify its types\\: TKey, T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:scheduleCollectionForBatchLoading\(\) has parameter \$collection with generic class Doctrine\\ORM\\PersistentCollection but does not specify its types\: TKey, T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:scheduleCollectionForBatchLoading\\(\\) has parameter \\$sourceClass with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:scheduleCollectionForBatchLoading\(\) has parameter \$sourceClass with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:updateAssociationWithMergedEntity\\(\\) has parameter \\$association with no value type specified in iterable type array\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:updateAssociationWithMergedEntity\(\) has parameter \$association with no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:updateAssociationWithMergedEntity\\(\\) has parameter \\$managedCopy with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:updateAssociationWithMergedEntity\(\) has parameter \$managedCopy with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/UnitOfWork.php - - message: "#^Method Doctrine\\\\ORM\\\\UnitOfWork\\:\\:updateAssociationWithMergedEntity\\(\\) has parameter \\$previousManagedCopy with no type specified\\.$#" + message: '#^Method Doctrine\\ORM\\UnitOfWork\:\:updateAssociationWithMergedEntity\(\) has parameter \$previousManagedCopy with no type specified\.$#' + identifier: missingType.parameter count: 1 path: src/UnitOfWork.php - - message: "#^Offset 'orphanRemoval' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''orphanRemoval'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/UnitOfWork.php - - message: "#^Offset 'targetToSourceKeyCo…' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''targetToSourceKeyColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/UnitOfWork.php - - message: "#^Parameter \\#1 \\$className of method Doctrine\\\\ORM\\\\EntityManagerInterface\\:\\:getClassMetadata\\(\\) expects string, class\\-string\\|false given\\.$#" + message: '#^PHPDoc tag @phpstan\-assert\-if\-true for \$obj contains generic interface Doctrine\\ORM\\Proxy\\InternalProxy but does not specify its types\: T$#' + identifier: missingType.generics + count: 1 + path: src/UnitOfWork.php + + - + message: '#^Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects string, class\-string\|false given\.$#' + identifier: argument.type count: 2 path: src/UnitOfWork.php - - message: "#^Parameter \\#2 \\$length of function array_chunk expects int\\<1, max\\>, int given\\.$#" + message: '#^Parameter \#2 \$length of function array_chunk expects int\<1, max\>, int given\.$#' + identifier: argument.type count: 2 path: src/UnitOfWork.php - - message: "#^Parameter \\#3 \\$changeSet of class Doctrine\\\\ORM\\\\Event\\\\PreUpdateEventArgs constructor is passed by reference, so it expects variables only$#" + message: '#^Parameter \#3 \$collection of class Doctrine\\ORM\\PersistentCollection constructor expects Doctrine\\Common\\Collections\\Collection\<\(int\|string\), mixed\>&Doctrine\\Common\\Collections\\Selectable\<\(int\|string\), mixed\>, Doctrine\\Common\\Collections\\Collection given\.$#' + identifier: argument.type count: 1 path: src/UnitOfWork.php - - message: "#^Parameter \\#3 \\$collection of class Doctrine\\\\ORM\\\\PersistentCollection constructor expects Doctrine\\\\Common\\\\Collections\\\\Collection\\<\\(int\\|string\\), mixed\\>&Doctrine\\\\Common\\\\Collections\\\\Selectable\\<\\(int\\|string\\), mixed\\>, Doctrine\\\\Common\\\\Collections\\\\Collection given\\.$#" + message: '#^Parameter \#5 \$invoke of method Doctrine\\ORM\\Event\\ListenersInvoker\:\:invoke\(\) expects int\<0, 7\>, int\\|int\<1, max\> given\.$#' + identifier: argument.type count: 1 path: src/UnitOfWork.php - - message: "#^Parameter \\#5 \\$invoke of method Doctrine\\\\ORM\\\\Event\\\\ListenersInvoker\\:\\:invoke\\(\\) expects int\\<0, 7\\>, int\\\\|int\\<1, max\\> given\\.$#" - count: 1 + message: '#^Parameter &\$visited by\-ref type of method Doctrine\\ORM\\UnitOfWork\:\:cascadeDetach\(\) expects array\, array\ given\.$#' + identifier: parameterByRef.type + count: 2 path: src/UnitOfWork.php - - message: "#^Property Doctrine\\\\ORM\\\\UnitOfWork\\:\\:\\$entityChangeSets \\(array\\\\>\\) does not accept non\\-empty\\-array\\\\>\\.$#" + message: '#^Property Doctrine\\ORM\\UnitOfWork\:\:\$entityChangeSets \(array\\>\) does not accept non\-empty\-array\\>\.$#' + identifier: assign.propertyType count: 1 path: src/UnitOfWork.php - - message: "#^Property Doctrine\\\\ORM\\\\UnitOfWork\\:\\:\\$nonCascadedNewDetectedEntities type has no value type specified in iterable type array\\.$#" + message: '#^Property Doctrine\\ORM\\UnitOfWork\:\:\$nonCascadedNewDetectedEntities type has no value type specified in iterable type array\.$#' + identifier: missingType.iterableValue count: 5 path: src/UnitOfWork.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$name\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$name\.$#' + identifier: property.notFound count: 1 path: src/Utility/HierarchyDiscriminatorResolver.php - - message: "#^Access to an undefined property Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata\\:\\:\\$subClasses\\.$#" + message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\:\:\$subClasses\.$#' + identifier: property.notFound count: 1 path: src/Utility/HierarchyDiscriminatorResolver.php - - message: "#^Method Doctrine\\\\ORM\\\\Utility\\\\HierarchyDiscriminatorResolver\\:\\:resolveDiscriminatorsForClass\\(\\) has parameter \\$rootClassMetadata with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Utility\\HierarchyDiscriminatorResolver\:\:resolveDiscriminatorsForClass\(\) has parameter \$rootClassMetadata with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/HierarchyDiscriminatorResolver.php - - message: "#^Method Doctrine\\\\ORM\\\\Utility\\\\IdentifierFlattener\\:\\:__construct\\(\\) has parameter \\$metadataFactory with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadataFactory but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Utility\\IdentifierFlattener\:\:__construct\(\) has parameter \$metadataFactory with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadataFactory but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/IdentifierFlattener.php - - message: "#^Method Doctrine\\\\ORM\\\\Utility\\\\IdentifierFlattener\\:\\:flattenIdentifier\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Utility\\IdentifierFlattener\:\:flattenIdentifier\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/IdentifierFlattener.php - - message: "#^Offset 'joinColumns' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinColumns'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Utility/IdentifierFlattener.php - - message: "#^Property Doctrine\\\\ORM\\\\Utility\\\\IdentifierFlattener\\:\\:\\$metadataFactory with generic interface Doctrine\\\\Persistence\\\\Mapping\\\\ClassMetadataFactory does not specify its types\\: T$#" + message: '#^Property Doctrine\\ORM\\Utility\\IdentifierFlattener\:\:\$metadataFactory with generic interface Doctrine\\Persistence\\Mapping\\ClassMetadataFactory does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/IdentifierFlattener.php - - message: "#^Method Doctrine\\\\ORM\\\\Utility\\\\PersisterHelper\\:\\:getTypeOfColumn\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Utility\\PersisterHelper\:\:getTypeOfColumn\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/PersisterHelper.php - - message: "#^Method Doctrine\\\\ORM\\\\Utility\\\\PersisterHelper\\:\\:getTypeOfField\\(\\) has parameter \\$class with generic class Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata but does not specify its types\\: T$#" + message: '#^Method Doctrine\\ORM\\Utility\\PersisterHelper\:\:getTypeOfField\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#' + identifier: missingType.generics count: 1 path: src/Utility/PersisterHelper.php - - message: "#^Offset 'joinTable' does not exist on array\\{cache\\?\\: array, cascade\\: array\\, declared\\?\\: class\\-string, fetch\\: mixed, fieldName\\: string, id\\?\\: bool, inherited\\?\\: class\\-string, indexBy\\?\\: string, \\.\\.\\.\\}\\.$#" + message: '#^Offset ''joinTable'' might not exist on array\{cache\?\: array, cascade\: array\, declared\?\: class\-string, fetch\: mixed, fieldName\: string, id\?\: bool, inherited\?\: class\-string, indexBy\?\: string, \.\.\.\}\.$#' + identifier: offsetAccess.notFound count: 1 path: src/Utility/PersisterHelper.php diff --git a/phpstan-dbal2.neon b/phpstan-dbal2.neon index b42e7217234..dbefaf002c2 100644 --- a/phpstan-dbal2.neon +++ b/phpstan-dbal2.neon @@ -7,6 +7,7 @@ parameters: ignoreErrors: # PHPStan doesn't understand our method_exists() safeguards. + - '/Call to function method_exists.*/' - '/Call to an undefined method Doctrine\\DBAL\\Connection::createSchemaManager\(\)\./' # Class name will change in DBAL 3. - '/^Class Doctrine\\DBAL\\Platforms\\PostgreSQLPlatform not found\.$/' @@ -46,6 +47,16 @@ parameters: path: src/Query/AST/Functions/LocateFunction.php # Won't get fixed in DBAL 2 + - + message: '#.*deleteItem.*expects string.*#' + count: 1 + path: src/Query.php + + - + message: '#.*get(Drop|Create)SchemaS(ql|QL).*should return list.*but returns array.*#' + count: 2 + path: src/Tools/SchemaTool.php + - message: "#^Parameter \\#2 \\$start of method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:getSubstringExpression\\(\\) expects int, string given\\.$#" count: 1 diff --git a/phpstan-params.neon b/phpstan-params.neon index 0c2be606f79..bff368e7113 100644 --- a/phpstan-params.neon +++ b/phpstan-params.neon @@ -9,7 +9,3 @@ parameters: Doctrine\ORM\Query\Parser: - syntaxError phpVersion: 80400 - - ignoreErrors: - # Remove on 3.0.x - - '~^Default value of the parameter #2 \$value \(array\{\}\) of method Doctrine\\ORM\\Query\\AST\\InstanceOfExpression\:\:__construct\(\) is incompatible with type non\-empty\-array\.$~' diff --git a/phpstan-persistence2.neon b/phpstan-persistence2.neon index c62b47e1683..b083dd2fa1d 100644 --- a/phpstan-persistence2.neon +++ b/phpstan-persistence2.neon @@ -98,5 +98,5 @@ parameters: path: src/Mapping/ClassMetadataFactory.php - - message: '#^Parameter \#1 \$classNames of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setParentClasses\(\) expects array\, array\ given\.$#' + message: '#^Parameter \#1 \$classNames of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\\:\:setParentClasses\(\) expects list\, array\ given\.$#' path: src/Mapping/ClassMetadataFactory.php diff --git a/src/Cache/DefaultQueryCache.php b/src/Cache/DefaultQueryCache.php index dccb7bfa77e..6be68da4a0d 100644 --- a/src/Cache/DefaultQueryCache.php +++ b/src/Cache/DefaultQueryCache.php @@ -262,7 +262,6 @@ public function put(QueryCacheKey $key, ResultSetMapping $rsm, $result, array $h $region = $persister->getCacheRegion(); $cm = $this->em->getClassMetadata($entityName); - assert($cm instanceof ClassMetadata); foreach ($result as $index => $entity) { $identifier = $this->uow->getEntityIdentifier($entity); diff --git a/src/Cache/Persister/Entity/AbstractEntityPersister.php b/src/Cache/Persister/Entity/AbstractEntityPersister.php index a00ed5be935..3cdd27885a4 100644 --- a/src/Cache/Persister/Entity/AbstractEntityPersister.php +++ b/src/Cache/Persister/Entity/AbstractEntityPersister.php @@ -25,7 +25,6 @@ use Doctrine\ORM\UnitOfWork; use function array_merge; -use function assert; use function serialize; use function sha1; @@ -614,9 +613,10 @@ public function refresh(array $id, $entity, $lockMode = null) */ protected function buildCollectionCacheKey(array $association, $ownerId) { - $metadata = $this->metadataFactory->getMetadataFor($association['sourceEntity']); - assert($metadata instanceof ClassMetadata); - - return new CollectionCacheKey($metadata->rootEntityName, $association['fieldName'], $ownerId); + return new CollectionCacheKey( + $this->metadataFactory->getMetadataFor($association['sourceEntity'])->rootEntityName, + $association['fieldName'], + $ownerId + ); } } diff --git a/src/Mapping/ClassMetadataFactory.php b/src/Mapping/ClassMetadataFactory.php index 4e48d82b75b..5965b09b459 100644 --- a/src/Mapping/ClassMetadataFactory.php +++ b/src/Mapping/ClassMetadataFactory.php @@ -830,7 +830,6 @@ private function inheritIdGeneratorMapping(ClassMetadataInfo $class, ClassMetada */ protected function wakeupReflection(ClassMetadataInterface $class, ReflectionService $reflService) { - assert($class instanceof ClassMetadata); $class->wakeupReflection($reflService); } @@ -839,7 +838,6 @@ protected function wakeupReflection(ClassMetadataInterface $class, ReflectionSer */ protected function initializeReflection(ClassMetadataInterface $class, ReflectionService $reflService) { - assert($class instanceof ClassMetadata); $class->initializeReflection($reflService); } diff --git a/src/Mapping/DefaultTypedFieldMapper.php b/src/Mapping/DefaultTypedFieldMapper.php index ae10ae106b8..a62a347135a 100644 --- a/src/Mapping/DefaultTypedFieldMapper.php +++ b/src/Mapping/DefaultTypedFieldMapper.php @@ -68,8 +68,6 @@ public function validateAndComplete(array $mapping, ReflectionProperty $field): assert(is_a($type->getName(), BackedEnum::class, true)); $mapping['enumType'] = $type->getName(); $type = $reflection->getBackingType(); - - assert($type instanceof ReflectionNamedType); } if (isset($this->typedFieldMappings[$type->getName()])) { diff --git a/src/Mapping/Driver/AttributeDriver.php b/src/Mapping/Driver/AttributeDriver.php index da494b489a3..4664e4ccc27 100644 --- a/src/Mapping/Driver/AttributeDriver.php +++ b/src/Mapping/Driver/AttributeDriver.php @@ -16,9 +16,7 @@ use LogicException; use ReflectionClass; use ReflectionMethod; -use ReflectionProperty; -use function assert; use function class_exists; use function constant; use function defined; @@ -310,8 +308,6 @@ public function loadMetadataForClass($className, PersistenceClassMetadata $metad } foreach ($reflectionClass->getProperties() as $property) { - assert($property instanceof ReflectionProperty); - if ($this->isRepeatedPropertyDeclaration($property, $metadata)) { continue; } @@ -322,8 +318,6 @@ public function loadMetadataForClass($className, PersistenceClassMetadata $metad // Evaluate #[Cache] attribute $cacheAttribute = $this->reader->getPropertyAttribute($property, Mapping\Cache::class); if ($cacheAttribute !== null) { - assert($cacheAttribute instanceof Mapping\Cache); - $mapping['cache'] = $metadata->getAssociationCacheDefaults( $mapping['fieldName'], [ @@ -569,7 +563,6 @@ public function loadMetadataForClass($className, PersistenceClassMetadata $metad $listenerClass = new ReflectionClass($listenerClassName); foreach ($listenerClass->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { - assert($method instanceof ReflectionMethod); // find method callbacks. $callbacks = $this->getMethodCallbacks($method); $hasMapping = $hasMapping ?: ! empty($callbacks); @@ -589,7 +582,6 @@ public function loadMetadataForClass($className, PersistenceClassMetadata $metad // Evaluate #[HasLifecycleCallbacks] attribute if (isset($classAttributes[Mapping\HasLifecycleCallbacks::class])) { foreach ($reflectionClass->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { - assert($method instanceof ReflectionMethod); foreach ($this->getMethodCallbacks($method) as $value) { $metadata->addLifecycleCallback($value[0], $value[1]); } diff --git a/src/Tools/Console/Command/ClearCache/QueryCommand.php b/src/Tools/Console/Command/ClearCache/QueryCommand.php index 8468251b14f..06f76dcfaa4 100644 --- a/src/Tools/Console/Command/ClearCache/QueryCommand.php +++ b/src/Tools/Console/Command/ClearCache/QueryCommand.php @@ -18,7 +18,6 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use function assert; use function get_debug_type; use function sprintf; @@ -96,13 +95,7 @@ private function doExecute(InputInterface $input, OutputInterface $output): int $ui->comment('Clearing all Query cache entries'); - if ($cache) { - $result = $cache->clear(); - } else { - assert($cacheDriver !== null); - $result = $cacheDriver->deleteAll(); - } - + $result = $cache ? $cache->clear() : $cacheDriver->deleteAll(); $message = $result ? 'Successfully deleted cache entries.' : 'No cache entries were deleted.'; if ($input->getOption('flush') === true && ! $cache) { diff --git a/src/Tools/SchemaTool.php b/src/Tools/SchemaTool.php index c713674638f..5112b2f962b 100644 --- a/src/Tools/SchemaTool.php +++ b/src/Tools/SchemaTool.php @@ -31,13 +31,11 @@ use function array_filter; use function array_flip; use function array_intersect_key; -use function assert; use function count; use function current; use function func_num_args; use function implode; use function in_array; -use function is_array; use function is_numeric; use function method_exists; use function strtolower; @@ -327,7 +325,6 @@ static function (ClassMetadata $class) use ($idMapping): bool { $pkColumns[] = $this->quoteStrategy->getColumnName($identifierField, $class, $this->platform); } elseif (isset($class->associationMappings[$identifierField])) { $assoc = $class->associationMappings[$identifierField]; - assert(is_array($assoc)); foreach ($assoc['joinColumns'] as $joinColumn) { $pkColumns[] = $this->quoteStrategy->getJoinColumnName($joinColumn, $class, $this->platform); From 6fd26a3933bb784ef82bd3251b0450006e5c537b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 7 Dec 2024 22:07:23 +0100 Subject: [PATCH 2/3] Order result (#11757) This avoids a test flakyness observed when using PostgreSQL in the CI. --- tests/Tests/ORM/Functional/QueryDqlFunctionTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Tests/ORM/Functional/QueryDqlFunctionTest.php b/tests/Tests/ORM/Functional/QueryDqlFunctionTest.php index f5dead66a31..e0feac0df3d 100644 --- a/tests/Tests/ORM/Functional/QueryDqlFunctionTest.php +++ b/tests/Tests/ORM/Functional/QueryDqlFunctionTest.php @@ -428,6 +428,7 @@ public function testInArithmeticExpression1(): void SELECT m, m.name AS m_name FROM Doctrine\Tests\Models\Company\CompanyManager m WHERE m.salary IN (800000 / 8, 100000 * 2) + ORDER BY m.name DESC SQL; $result = $this->_em->createQuery($dql)->getArrayResult(); From a5c80a4c753454a1957683c4e9e8f3cec8998a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 7 Dec 2024 23:21:04 +0100 Subject: [PATCH 3/3] Provide XSD for phpcs file (#11752) It unlocks autocompletion and validation in some IDEs. --- phpcs.xml.dist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index fa28a585b6e..ec9ff9f2cc3 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -1,5 +1,7 @@ - +