Skip to content

Commit 296a337

Browse files
IonBazanGromNaN
andauthored
[3.0] Remove annotations support (doctrine#2976)
--------- Co-authored-by: Jérôme Tamarelle <jerome@tamarelle.net>
1 parent 7aaf32e commit 296a337

File tree

425 files changed

+562
-2143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

425 files changed

+562
-2143
lines changed

phpstan-baseline.neon

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -396,24 +396,6 @@ parameters:
396396
count: 1
397397
path: src/Mapping/ClassMetadata.php
398398

399-
-
400-
message: '#^Result of && is always false\.$#'
401-
identifier: booleanAnd.alwaysFalse
402-
count: 1
403-
path: src/Mapping/ClassMetadata.php
404-
405-
-
406-
message: '#^Strict comparison using \!\=\= between ''Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\ClassMetadata'' and ''Doctrine\\\\ODM\\\\MongoDB\\\\Mapping\\\\ClassMetadata'' will always evaluate to false\.$#'
407-
identifier: notIdentical.alwaysFalse
408-
count: 1
409-
path: src/Mapping/ClassMetadata.php
410-
411-
-
412-
message: '#^Strict comparison using \!\=\= between mixed and \*NEVER\* will always evaluate to true\.$#'
413-
identifier: notIdentical.alwaysTrue
414-
count: 1
415-
path: src/Mapping/ClassMetadata.php
416-
417399
-
418400
message: '#^Template type T is declared as covariant, but occurs in invariant position in property Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata\:\:\$name\.$#'
419401
identifier: generics.variance
@@ -985,13 +967,13 @@ parameters:
985967
path: tests/Tests/Functional/QueryableEncryptionTest.php
986968

987969
-
988-
message: '#^Parameter \$discriminatorMap of attribute class Doctrine\\ODM\\MongoDB\\Mapping\\Annotations\\ReferenceOne constructor expects array\<string, class\-string\>\|null, array\<string, string\> given\.$#'
970+
message: '#^Parameter \$discriminatorMap of attribute class Doctrine\\ODM\\MongoDB\\Mapping\\Attribute\\ReferenceOne constructor expects array\<string, class\-string\>\|null, array\<string, string\> given\.$#'
989971
identifier: argument.type
990972
count: 1
991973
path: tests/Tests/Functional/TargetDocumentTest.php
992974

993975
-
994-
message: '#^Parameter \$targetDocument of attribute class Doctrine\\ODM\\MongoDB\\Mapping\\Annotations\\ReferenceOne constructor expects class\-string\|null, string given\.$#'
976+
message: '#^Parameter \$targetDocument of attribute class Doctrine\\ODM\\MongoDB\\Mapping\\Attribute\\ReferenceOne constructor expects class\-string\|null, string given\.$#'
995977
identifier: argument.type
996978
count: 1
997979
path: tests/Tests/Functional/TargetDocumentTest.php
@@ -1014,12 +996,6 @@ parameters:
1014996
count: 1
1015997
path: tests/Tests/Mapping/ClassMetadataTest.php
1016998

1017-
-
1018-
message: '#^Static call to instance method Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata\<object\>\:\:__sleep\(\)\.$#'
1019-
identifier: method.staticCall
1020-
count: 1
1021-
path: tests/Tests/Mapping/ClassMetadataTest.php
1022-
1023999
-
10241000
message: '#^Method Doctrine\\ODM\\MongoDB\\Tests\\Query\\BuilderTest\:\:testExclude\(\) has parameter \$expected with no value type specified in iterable type array\.$#'
10251001
identifier: missingType.iterableValue

src/Events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function __construct()
8888

8989
/**
9090
* The loadClassMetadata event occurs after the mapping metadata for a class
91-
* has been loaded from a mapping source (annotations/xml).
91+
* has been loaded from a mapping source (attributes/xml).
9292
*/
9393
public const string loadClassMetadata = 'loadClassMetadata';
9494

src/Mapping/Annotations/AbstractDocument.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Mapping/Annotations/AbstractField.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Mapping/Annotations/AbstractIndex.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Mapping/Annotations/AlsoLoad.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Mapping/Annotations/Annotation.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Mapping/Annotations/ChangeTrackingPolicy.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Mapping/Annotations/DefaultDiscriminatorValue.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/Mapping/Annotations/DiscriminatorField.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)