You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+40-76Lines changed: 40 additions & 76 deletions
Original file line number
Diff line number
Diff line change
@@ -18,18 +18,6 @@ parameters:
18
18
count:1
19
19
path:src/AbstractQuery.php
20
20
21
-
-
22
-
message:'#^Expression "\$setCacheEntry\(\$data\)" on a separate line does not do anything\.$#'
23
-
identifier:expr.resultUnused
24
-
count:1
25
-
path:src/AbstractQuery.php
26
-
27
-
-
28
-
message:'#^Expression "\$setCacheEntry\(\$stmt\)" on a separate line does not do anything\.$#'
29
-
identifier:expr.resultUnused
30
-
count:1
31
-
path:src/AbstractQuery.php
32
-
33
21
-
34
22
message:'#^Method Doctrine\\ORM\\AbstractQuery\:\:getParameter\(\) should return Doctrine\\ORM\\Query\\Parameter\|null but returns Doctrine\\ORM\\Query\\Parameter\|false\|null\.$#'
35
23
identifier:return.type
@@ -102,6 +90,12 @@ parameters:
102
90
count:1
103
91
path:src/Cache/CollectionHydrator.php
104
92
93
+
-
94
+
message:'#^If condition is always false\.$#'
95
+
identifier:if.alwaysFalse
96
+
count:1
97
+
path:src/Cache/DefaultCache.php
98
+
105
99
-
106
100
message:'#^Method Doctrine\\ORM\\Cache\\DefaultCache\:\:buildCollectionCacheKey\(\) has parameter \$metadata with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
107
101
identifier:missingType.generics
@@ -264,12 +258,6 @@ parameters:
264
258
count:1
265
259
path:src/Cache/DefaultQueryCache.php
266
260
267
-
-
268
-
message:'#^Parameter \#1 \$result of class Doctrine\\ORM\\Cache\\QueryCacheEntry constructor expects array\<string, mixed\>, array\<int\|string, array\<string, array\<mixed\>\>\> given\.$#'
269
-
identifier:argument.type
270
-
count:1
271
-
path:src/Cache/DefaultQueryCache.php
272
-
273
261
-
274
262
message:'#^Parameter \#2 \$key of method Doctrine\\ORM\\Cache\\Logging\\CacheLogger\:\:entityCacheHit\(\) expects Doctrine\\ORM\\Cache\\EntityCacheKey, Doctrine\\ORM\\Cache\\CacheKey given\.$#'
275
263
identifier:argument.type
@@ -630,6 +618,18 @@ parameters:
630
618
count:1
631
619
path:src/Cache/TimestampQueryCacheValidator.php
632
620
621
+
-
622
+
message:'#^Call to function is_a\(\) with arguments class\-string\<Doctrine\\ORM\\EntityRepository\>, ''Doctrine\\\\ORM\\\\EntityRepository'' and true will always evaluate to true\.$#'
623
+
identifier:function.alreadyNarrowedType
624
+
count:1
625
+
path:src/Configuration.php
626
+
627
+
-
628
+
message:'#^Call to function is_a\(\) with arguments class\-string\<Doctrine\\ORM\\EntityRepository\>, ''Doctrine\\\\Persistence\\\\ObjectRepository'' and true will always evaluate to true\.$#'
629
+
identifier:function.alreadyNarrowedType
630
+
count:1
631
+
path:src/Configuration.php
632
+
633
633
-
634
634
message:'#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Configuration'' and ''getResultCache'' will always evaluate to true\.$#'
635
635
identifier:function.alreadyNarrowedType
@@ -973,13 +973,13 @@ parameters:
973
973
path:src/Internal/Hydration/AbstractHydrator.php
974
974
975
975
-
976
-
message:'#^Parameter &\$id by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, string\>, array\<int\|string, string\> given\.$#'
976
+
message:'#^Parameter &\$id by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, string\>, array\<string\> given\.$#'
977
977
identifier:parameterByRef.type
978
978
count:1
979
979
path:src/Internal/Hydration/AbstractHydrator.php
980
980
981
981
-
982
-
message:'#^Parameter &\$nonemptyComponents by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, bool\>, array\<int\|string, bool\> given\.$#'
982
+
message:'#^Parameter &\$nonemptyComponents by\-ref type of method Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator\:\:gatherRowData\(\) expects array\<string, bool\>, array\<bool\> given\.$#'
983
983
identifier:parameterByRef.type
984
984
count:1
985
985
path:src/Internal/Hydration/AbstractHydrator.php
@@ -1188,6 +1188,12 @@ parameters:
1188
1188
count:5
1189
1189
path:src/Mapping/ClassMetadata.php
1190
1190
1191
+
-
1192
+
message:'#^Call to function is_a\(\) with Doctrine\\DBAL\\Platforms\\OraclePlatform and ''Doctrine\\\\DBAL…'' will always evaluate to false\.$#'
message:'#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\<T of object\>\:\:\$namedNativeQueries \(array\<string, array\<string, mixed\>\>\) does not accept array\<int\|string, array\<string, mixed\>\>\.$#'
1685
-
identifier:assign.propertyType
1686
-
count:1
1687
-
path:src/Mapping/ClassMetadataInfo.php
1688
-
1689
-
-
1690
-
message:'#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\<T of object\>\:\:\$namedQueries \(array\<string, array\<string, mixed\>\>\) does not accept array\<int\|string, array\<string, mixed\>\>\.$#'
1691
-
identifier:assign.propertyType
1692
-
count:1
1693
-
path:src/Mapping/ClassMetadataInfo.php
1694
-
1695
-
-
1696
-
message:'#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\<T of object\>\:\:\$sqlResultSetMappings \(array\<string, array\{name\: string, entities\: array\<mixed\>, columns\: array\<mixed\>\}\>\) does not accept non\-empty\-array\<int\|string, array\<string, mixed\>\>\.$#'
1690
+
message:'#^Property Doctrine\\ORM\\Mapping\\ClassMetadataInfo\<T of object\>\:\:\$sqlResultSetMappings \(array\<string, array\{name\: string, entities\: array\<mixed\>, columns\: array\<mixed\>\}\>\) does not accept non\-empty\-array\<non\-empty\-array\<string, mixed\>\>\.$#'
1697
1691
identifier:assign.propertyType
1698
1692
count:1
1699
1693
path:src/Mapping/ClassMetadataInfo.php
@@ -1722,6 +1716,12 @@ parameters:
1722
1716
count:1
1723
1717
path:src/Mapping/ClassMetadataInfo.php
1724
1718
1719
+
-
1720
+
message:'#^Template type T is declared as covariant, but occurs in invariant position in return type of method Doctrine\\ORM\\Mapping\\ClassMetadataInfo\:\:getReflectionClass\(\)\.$#'
1721
+
identifier:generics.variance
1722
+
count:1
1723
+
path:src/Mapping/ClassMetadataInfo.php
1724
+
1725
1725
-
1726
1726
message:'#^@readonly property cannot have a default value\.$#'
1727
1727
identifier:property.readOnlyByPhpDocDefaultValue
@@ -3195,33 +3195,6 @@ parameters:
3195
3195
count:1
3196
3196
path:src/Proxy/ProxyFactory.php
3197
3197
3198
-
-
3199
-
message:'''
3200
-
#^Call to method __construct\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3201
-
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3202
-
'''
3203
-
identifier:staticMethod.deprecatedClass
3204
-
count:1
3205
-
path:src/Proxy/ProxyFactory.php
3206
-
3207
-
-
3208
-
message:'''
3209
-
#^Call to method generateProxyClasses\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3210
-
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3211
-
'''
3212
-
identifier:staticMethod.deprecatedClass
3213
-
count:1
3214
-
path:src/Proxy/ProxyFactory.php
3215
-
3216
-
-
3217
-
message:'''
3218
-
#^Call to method getProxy\(\) of deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
3219
-
The AbstractProxyFactory class is deprecated since doctrine/common 3\.5\.$#
3220
-
'''
3221
-
identifier:staticMethod.deprecatedClass
3222
-
count:1
3223
-
path:src/Proxy/ProxyFactory.php
3224
-
3225
3198
-
3226
3199
message:'''
3227
3200
#^Class Doctrine\\ORM\\Proxy\\ProxyFactory extends deprecated class Doctrine\\Common\\Proxy\\AbstractProxyFactory\:
@@ -3243,15 +3216,6 @@ parameters:
3243
3216
count:1
3244
3217
path:src/Proxy/ProxyFactory.php
3245
3218
3246
-
-
3247
-
message:'''
3248
-
#^Instantiation of deprecated class Doctrine\\Common\\Proxy\\ProxyGenerator\:
3249
-
The ProxyGenerator class is deprecated since doctrine/common 3\.5\.$#
3250
-
'''
3251
-
identifier:new.deprecated
3252
-
count:1
3253
-
path:src/Proxy/ProxyFactory.php
3254
-
3255
3219
-
3256
3220
message:'#^Method Doctrine\\ORM\\Proxy\\ProxyFactory\:\:createCloner\(\) has Doctrine\\ORM\\EntityNotFoundException in PHPDoc @throws tag but it''s not thrown\.$#'
3257
3221
identifier:throws.unusedType
@@ -3987,12 +3951,6 @@ parameters:
3987
3951
count:5
3988
3952
path:src/Query/SqlWalker.php
3989
3953
3990
-
-
3991
-
message:'#^Property Doctrine\\ORM\\Query\\SqlWalker\:\:\$selectedClasses \(array\<string, array\{class\: Doctrine\\ORM\\Mapping\\ClassMetadata, dqlAlias\: string, resultAlias\: string\|null\}\>\) does not accept non\-empty\-array\<int\|string, array\{class\: Doctrine\\ORM\\Mapping\\ClassMetadata, dqlAlias\: mixed, resultAlias\: string\|null\}\>\.$#'
3992
-
identifier:assign.propertyType
3993
-
count:1
3994
-
path:src/Query/SqlWalker.php
3995
-
3996
3954
-
3997
3955
message:'#^Property Doctrine\\ORM\\Query\\SqlWalker\:\:\$selectedClasses with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
message:'#^Method Doctrine\\ORM\\Tools\\Pagination\\Paginator\:\:setUseOutputWalkers\(\) should return static\(Doctrine\\ORM\\Tools\\Pagination\\Paginator\<T\>\) but returns \$this\(Doctrine\\ORM\\Tools\\Pagination\\Paginator\<T\>\)\.$#'
5030
+
identifier:return.type
5031
+
count:1
5032
+
path:src/Tools/Pagination/Paginator.php
5033
+
5070
5034
-
5071
5035
message:'#^PHPDoc tag @var for variable \$parameters contains generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#'
0 commit comments