Skip to content

Commit

Permalink
Remove SimpleAnnotationReader (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Dec 19, 2022
1 parent 4919d49 commit 9dc2866
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 263 deletions.
1 change: 1 addition & 0 deletions UPGRADE.md
@@ -1,5 +1,6 @@
# Upgrade from 1.0.x to 2.0.x

- `SimpleAnnotationReader` has been removed.
- `DocLexer::peek()` and `DocLexer::glimpse` now return
`Doctrine\Common\Lexer\Token` objects. When using `doctrine/lexer` 2, these
implement `ArrayAccess` as a way for you to still be able to treat them as
Expand Down
112 changes: 0 additions & 112 deletions lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php

This file was deleted.

140 changes: 0 additions & 140 deletions tests/Doctrine/Tests/Common/Annotations/SimpleAnnotationReaderTest.php

This file was deleted.

11 changes: 0 additions & 11 deletions tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM58Test.php
Expand Up @@ -4,7 +4,6 @@

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\DocParser;
use Doctrine\Common\Annotations\SimpleAnnotationReader;
use PHPUnit\Framework\TestCase;
use ReflectionClass;

Expand Down Expand Up @@ -78,16 +77,6 @@ public function testIssueWithNamespacesOrImports(): void
self::assertCount(1, $annots);
self::assertInstanceOf(\Entity::class, $annots[0]);
}

public function testIssueSimpleAnnotationReader(): void
{
$reader = new SimpleAnnotationReader();
$reader->addNamespace('Doctrine\Tests\Common\Annotations\Ticket\Doctrine\ORM\Mapping');
$annots = $reader->getClassAnnotations(new ReflectionClass(__NAMESPACE__ . '\MappedClass'));

self::assertCount(1, $annots);
self::assertInstanceOf(Doctrine\ORM\Mapping\Entity::class, $annots[0]);
}
}

/**
Expand Down

0 comments on commit 9dc2866

Please sign in to comment.