Skip to content

Commit 468f562

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Remove dead code
2 parents 9012c43 + 49aa286 commit 468f562

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Tests/ValidatorBuilderTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Tests;
1313

14-
use Doctrine\Common\Annotations\CachedReader;
1514
use Doctrine\Common\Annotations\PsrCachedReader;
1615
use Doctrine\Common\Annotations\Reader;
1716
use PHPUnit\Framework\TestCase;
@@ -94,11 +93,7 @@ public function testEnableAnnotationMappingWithDefaultDoctrineAnnotationReader()
9493
$r = new \ReflectionProperty(AnnotationLoader::class, 'reader');
9594
$r->setAccessible(true);
9695

97-
if (class_exists(PsrCachedReader::class)) {
98-
$this->assertInstanceOf(PsrCachedReader::class, $r->getValue($loaders[0]));
99-
} else {
100-
$this->assertInstanceOf(CachedReader::class, $r->getValue($loaders[0]));
101-
}
96+
$this->assertInstanceOf(PsrCachedReader::class, $r->getValue($loaders[0]));
10297
}
10398

10499
public function testEnableAnnotationMappingWithCustomDoctrineAnnotationReader()

0 commit comments

Comments
 (0)