Skip to content

Commit 938720c

Browse files
committed
fix for doctrine/annotations v2 deprecations
1 parent 54c28af commit 938720c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Factory/AbstractAnnotatedFactory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
use Doctrine\Common\Annotations\AnnotationReader;
88
use Doctrine\Common\Annotations\PsrCachedReader;
99
use Doctrine\Common\Annotations\Reader;
10-
use Doctrine\Common\Cache\Cache;
1110
use Psr\Cache\CacheItemPoolInterface;
1211
use Psr\Container\ContainerExceptionInterface;
1312
use Psr\Container\ContainerInterface;
1413
use Psr\Container\NotFoundExceptionInterface;
1514

1615
abstract class AbstractAnnotatedFactory
1716
{
18-
const CACHE_SERVICE = CacheItemPoolInterface::class;
17+
public const CACHE_SERVICE = CacheItemPoolInterface::class;
1918
protected ?Reader $annotationReader = null;
2019
public function setAnnotationReader(Reader $annotationReader): void
2120
{
@@ -35,7 +34,7 @@ protected function createAnnotationReader(ContainerInterface $container): Reader
3534
if (! $container->has(self::CACHE_SERVICE)) {
3635
return $this->annotationReader = new AnnotationReader();
3736
} else {
38-
/** @var Cache $cache */
37+
/** @var CacheItemPoolInterface $cache */
3938
$cache = $container->get(self::CACHE_SERVICE);
4039
$debug = false;
4140
if ($container->has('config')) {

0 commit comments

Comments
 (0)