File tree Expand file tree Collapse file tree 3 files changed +2
-29
lines changed Expand file tree Collapse file tree 3 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,3 @@ parameters:
1111 -
1212 message : ' ~^Match expression does not handle remaining values:~'
1313 path : src/Persisters/Entity/BasicEntityPersister.php
14-
15- # To be removed in 4.0
16-
17- -
18- message : ' #Negated boolean expression is always false\.#'
19- paths :
20- - src/Mapping/Driver/AttributeDriver.php
Original file line number Diff line number Diff line change 1212use Doctrine \Persistence \Mapping \ClassMetadata as PersistenceClassMetadata ;
1313use Doctrine \Persistence \Mapping \Driver \ColocatedMappingDriver ;
1414use Doctrine \Persistence \Mapping \Driver \MappingDriver ;
15- use InvalidArgumentException ;
1615use ReflectionClass ;
1716use ReflectionMethod ;
1817
1918use function assert ;
2019use function class_exists ;
2120use function constant ;
2221use function defined ;
23- use function sprintf ;
2422
2523class AttributeDriver implements MappingDriver
2624{
@@ -34,19 +32,9 @@ class AttributeDriver implements MappingDriver
3432
3533 private readonly AttributeReader $ reader ;
3634
37- /**
38- * @param array<string> $paths
39- * @param true $reportFieldsWhereDeclared no-op, to be removed in 4.0
40- */
41- public function __construct (array $ paths , bool $ reportFieldsWhereDeclared = true )
35+ /** @param array<string> $paths */
36+ public function __construct (array $ paths )
4237 {
43- if (! $ reportFieldsWhereDeclared ) {
44- throw new InvalidArgumentException (sprintf (
45- 'The $reportFieldsWhereDeclared argument is no longer supported, make sure to omit it when calling %s. ' ,
46- __METHOD__ ,
47- ));
48- }
49-
5038 $ this ->reader = new AttributeReader ();
5139 $ this ->addPaths ($ paths );
5240 }
Original file line number Diff line number Diff line change 1212use Doctrine \ORM \Mapping \MappingAttribute ;
1313use Doctrine \Persistence \Mapping \Driver \MappingDriver ;
1414use Doctrine \Tests \ORM \Mapping \Fixtures \AttributeEntityWithNestedJoinColumns ;
15- use InvalidArgumentException ;
1615use stdClass ;
1716
1817class AttributeDriverTest extends MappingDriverTestCase
@@ -88,13 +87,6 @@ public function testManyToManyAssociationWithNestedJoinColumns(): void
8887 $ metadata ->associationMappings ['assoc ' ]->joinTable ->inverseJoinColumns ,
8988 );
9089 }
91-
92- public function testItThrowsWhenSettingReportFieldsWhereDeclaredToFalse (): void
93- {
94- $ this ->expectException (InvalidArgumentException::class);
95-
96- new AttributeDriver ([], false );
97- }
9890}
9991
10092#[ORM \Entity]
You can’t perform that action at this time.
0 commit comments