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#433
(available from `doctrine/persistence` >= 4.1) there was added
`ColocatedMappingDriver::$classLocator` property, which allows
passing any instance of `ClassLocator` 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, tests ensure that `ClassLocator` actually exists.
The old paths behaviour can be adapted into the new by using
`FileClassLocator::createFromDirectories($directoryPaths)` and
passing it as a class locator to `AttributeDriver`.
# Conflicts:
# tests/Tests/ORM/Persisters/BinaryIdPersisterTest.php
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1314,6 +1314,20 @@ 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\:\:\$classLocator\.$#'
1319
+
identifier:property.notFound
1320
+
count:1
1321
+
path:src/Mapping/Driver/AttributeDriver.php
1322
+
reportUnmatched:false
1323
+
1324
+
-
1325
+
message:'#^Class Doctrine\\Persistence\\Mapping\\Driver\\ClassLocator not found\.$#'
1326
+
identifier:class.notFound
1327
+
count:1
1328
+
path:src/Mapping/Driver/AttributeDriver.php
1329
+
reportUnmatched:false
1330
+
1317
1331
-
1318
1332
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$#'
1319
1333
identifier:missingType.generics
@@ -1326,6 +1340,13 @@ parameters:
1326
1340
count:1
1327
1341
path:src/Mapping/Driver/AttributeDriver.php
1328
1342
1343
+
-
1344
+
message:'#^Parameter \$paths of method Doctrine\\ORM\\Mapping\\Driver\\AttributeDriver\:\:__construct\(\) has invalid type Doctrine\\Persistence\\Mapping\\Driver\\ClassLocator\.$#'
1345
+
identifier:class.notFound
1346
+
count:2
1347
+
path:src/Mapping/Driver/AttributeDriver.php
1348
+
reportUnmatched:false
1349
+
1329
1350
-
1330
1351
message:'#^Unable to resolve the template type C in call to method Doctrine\\ORM\\Mapping\\ClassMetadata\<T of object\>\:\:fullyQualifiedClassName\(\)$#'
1331
1352
identifier:argument.templateType
@@ -1650,6 +1671,20 @@ parameters:
1650
1671
count:1
1651
1672
path:src/ORMInvalidArgumentException.php
1652
1673
1674
+
-
1675
+
message:'#^Parameter \$paths of method Doctrine\\ORM\\ORMSetup\:\:createAttributeMetadataConfig\(\) has invalid type Doctrine\\Persistence\\Mapping\\Driver\\ClassLocator\.$#'
1676
+
identifier:class.notFound
1677
+
count:2
1678
+
path:src/ORMSetup.php
1679
+
reportUnmatched:false
1680
+
1681
+
-
1682
+
message:'#^Parameter \$paths of method Doctrine\\ORM\\ORMSetup\:\:createAttributeMetadataConfiguration\(\) has invalid type Doctrine\\Persistence\\Mapping\\Driver\\ClassLocator\.$#'
1683
+
identifier:class.notFound
1684
+
count:2
1685
+
path:src/ORMSetup.php
1686
+
reportUnmatched:false
1687
+
1653
1688
-
1654
1689
message:'#^Call to method Doctrine\\ORM\\Mapping\\AssociationMapping\:\:isToMany\(\) will always evaluate to true\.$#'
0 commit comments