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
In the scope of doctrine/persistence#432
(available from `doctrine/persistence` >= 4.1) there was added
`ColocatedMappingDriver::$filePaths` property, which allows
passing the iterable of file paths for the mapping driver to use.
This commit integrates those changes into `AttributeDriver`.
Since `doctrine/orm` maintains the support for `doctrine/persistence`
of older versions, `AttributeDriver` ensures that `$filePaths`
is actually defined. Tests use `InstalledVersions` to opt into new
behaviour if `doctrine/persistence` is version 4.1 or above.
The old behaviour can be adapted into the new by using
`DirectoryFilesIterator` and `FilePathNameIterator` on directory paths.
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1314,6 +1314,13 @@ parameters:
1314
1314
count:1
1315
1315
path:src/Mapping/DefaultQuoteStrategy.php
1316
1316
1317
+
-
1318
+
message:'#^Access to an undefined property Doctrine\\ORM\\Mapping\\Driver\\AttributeDriver\:\:\$filePaths\.$#'
1319
+
identifier:property.notFound # property is available starting from doctrine/persistence 4.1
1320
+
count:1
1321
+
path:src/Mapping/Driver/AttributeDriver.php
1322
+
reportUnmatched:false
1323
+
1317
1324
-
1318
1325
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$#'
0 commit comments