@@ -145,8 +145,8 @@ parameters:
145
145
146
146
# When iterating over SimpleXMLElement, we cannot know the key values
147
147
-
148
- message : " #^Parameter \\ #2 \\ $mapping of method Doctrine\\\\ ODM\\\\ MongoDB\\\\ Mapping\\\\ Driver\\\\ XmlDriver\\ :\\ :addFieldMapping\\ (\\ ) expects array\\ {type \\ ? \\ : string, fieldName \\ ? \\ : string, name \\ ? \\ : string, strategy \\ ? \\ : string, association \\ ? \\ : int, id \\ ? \\ : bool, isOwningSide \\ ? \\ : bool, collectionClass \\ ? \\ : class \\ -string, \\ . \\ . \\ . \\ }, array \\ <int \\ |string, non \\ -empty \\ -array \\ <int, string \\ > \\ |bool \\ |string \\ > given \\ .$ #"
149
- count : 1
148
+ message : " #^Parameter \\ #2 \\ $mapping of method Doctrine\\\\ ODM\\\\ MongoDB\\\\ Mapping\\\\ Driver\\\\ XmlDriver\\ :\\ :addFieldMapping\\ (\\ ) expects array#"
149
+ count : 2
150
150
path : lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php
151
151
152
152
# This is handled by a try-catch block
@@ -163,6 +163,17 @@ parameters:
163
163
count : 1
164
164
path : lib/Doctrine/ODM/MongoDB/PersistentCollection.php
165
165
166
+ # complains about types for arguments we do not use/care
167
+ -
168
+ message : " #^Method Doctrine\\\\ ODM\\\\ MongoDB\\\\ Proxy\\\\ Factory\\\\ StaticProxyFactory\\ :\\ :createInitializer\\ (\\ ) should return Closure\\ (ProxyManager\\\\ Proxy\\\\ GhostObjectInterface\\ <TDocument of object\\ >&TDocument of object\\ =, string\\ =, array\\ <string, mixed\\ >\\ =, Closure\\ |null\\ =, array\\ <string, mixed\\ >\\ =\\ )\\ : bool but returns Closure\\ (ProxyManager\\\\ Proxy\\\\ GhostObjectInterface, string, array, mixed, array\\ )\\ : true\\ .$#"
169
+ count : 1
170
+ path : lib/Doctrine/ODM/MongoDB/Proxy/Factory/StaticProxyFactory.php
171
+
172
+ -
173
+ 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, string, array, mixed, array\\ )\\ : true given\\ .$#"
174
+ count : 1
175
+ path : lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php
176
+
166
177
# compatibility layer for doctrine/persistence ^2.4 || ^3.0
167
178
-
168
179
message : " #.*#"
@@ -220,3 +231,14 @@ parameters:
220
231
message : " #.+mapField\\ (\\ ) expects.+enumType\\ : 'Documents81#"
221
232
count : 2
222
233
path : tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php
234
+
235
+ # it loads an empty class ReflectionEnum of ReflectionEnumPolyfill.php file from laminas/laminas-code, see https://github.com/phpstan/phpstan/issues/7290
236
+ -
237
+ message : " #^Call to an undefined method ReflectionEnum\\ :\\ :isBacked\\ (\\ )\\ .$#"
238
+ count : 1
239
+ path : lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
240
+
241
+ -
242
+ message : " #^Call to an undefined method ReflectionEnum\\ :\\ :getBackingType\\ (\\ )\\ .$#"
243
+ count : 1
244
+ path : lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
0 commit comments