Skip to content

Commit 9dc2866

Browse files
authored
Remove SimpleAnnotationReader (#469)
1 parent 4919d49 commit 9dc2866

File tree

4 files changed

+1
-263
lines changed

4 files changed

+1
-263
lines changed

UPGRADE.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Upgrade from 1.0.x to 2.0.x
22

3+
- `SimpleAnnotationReader` has been removed.
34
- `DocLexer::peek()` and `DocLexer::glimpse` now return
45
`Doctrine\Common\Lexer\Token` objects. When using `doctrine/lexer` 2, these
56
implement `ArrayAccess` as a way for you to still be able to treat them as

lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php

-112
This file was deleted.

tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php

-140
This file was deleted.

tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Test.php

-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Doctrine\Common\Annotations\AnnotationReader;
66
use Doctrine\Common\Annotations\DocParser;
7-
use Doctrine\Common\Annotations\SimpleAnnotationReader;
87
use PHPUnit\Framework\TestCase;
98
use ReflectionClass;
109

@@ -78,16 +77,6 @@ public function testIssueWithNamespacesOrImports(): void
7877
self::assertCount(1, $annots);
7978
self::assertInstanceOf(\Entity::class, $annots[0]);
8079
}
81-
82-
public function testIssueSimpleAnnotationReader(): void
83-
{
84-
$reader = new SimpleAnnotationReader();
85-
$reader->addNamespace('Doctrine\Tests\Common\Annotations\Ticket\Doctrine\ORM\Mapping');
86-
$annots = $reader->getClassAnnotations(new ReflectionClass(__NAMESPACE__ . '\MappedClass'));
87-
88-
self::assertCount(1, $annots);
89-
self::assertInstanceOf(Doctrine\ORM\Mapping\Entity::class, $annots[0]);
90-
}
9180
}
9281

9382
/**

0 commit comments

Comments
 (0)