Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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