Skip to content

Commit dbc09c4

Browse files
committed
Baseline phpstan false-positive
1 parent 2ab00a9 commit dbc09c4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

phpstan-baseline.neon

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -378,18 +378,6 @@ parameters:
378378
count: 1
379379
path: lib/Doctrine/ODM/MongoDB/Mapping/Annotations/SearchIndex.php
380380

381-
-
382-
message: '#^Call to function assert\(\) with true will always evaluate to true\.$#'
383-
identifier: function.alreadyNarrowedType
384-
count: 1
385-
path: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
386-
387-
-
388-
message: '#^Instanceof between Doctrine\\Persistence\\Reflection\\RuntimeReflectionProperty and ReflectionProperty will always evaluate to true\.$#'
389-
identifier: instanceof.alwaysTrue
390-
count: 1
391-
path: lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
392-
393381
-
394382
message: '#^Method Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata\:\:addInheritedAssociationMapping\(\) has Doctrine\\ODM\\MongoDB\\Mapping\\MappingException in PHPDoc @throws tag but it''s not thrown\.$#'
395383
identifier: throws.unusedType
@@ -492,6 +480,18 @@ parameters:
492480
count: 1
493481
path: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php
494482

483+
-
484+
message: '#^Parameter \#1 \$initializer of method ProxyManager\\Proxy\\GhostObjectInterface\<object\>\:\:setProxyInitializer\(\) expects \(Closure\(ProxyManager\\Proxy\\GhostObjectInterface\<object\>\=, string\=, array\<string, mixed\>\=, Closure\|null\=, array\<string, mixed\>\=\)\: bool\)\|null, \(Closure\(ProxyManager\\Proxy\\GhostObjectInterface\<object\>\=, string, array\<string, mixed\>\=, Closure\|null\=, array\<string, mixed\>\=\)\: bool\)\|null given\.$#'
485+
identifier: argument.type
486+
count: 1
487+
path: lib/Doctrine/ODM/MongoDB/Mapping/PropertyAccessors/ObjectCastPropertyAccessor.php
488+
489+
-
490+
message: '#^Parameter \#1 \$initializer of method ProxyManager\\Proxy\\GhostObjectInterface\<object\>\:\:setProxyInitializer\(\) expects \(Closure\(ProxyManager\\Proxy\\GhostObjectInterface\<object\>\=, string\=, array\<string, mixed\>\=, Closure\|null\=, array\<string, mixed\>\=\)\: bool\)\|null, \(Closure\(ProxyManager\\Proxy\\GhostObjectInterface\<object\>\=, string, array\<string, mixed\>\=, Closure\|null\=, array\<string, mixed\>\=\)\: bool\)\|null given\.$#'
491+
identifier: argument.type
492+
count: 1
493+
path: lib/Doctrine/ODM/MongoDB/Mapping/PropertyAccessors/RawValuePropertyAccessor.php
494+
495495
-
496496
message: '#^Call to function is_object\(\) with Doctrine\\Common\\Collections\\Collection will always evaluate to true\.$#'
497497
identifier: function.alreadyNarrowedType

0 commit comments

Comments
 (0)