diff --git a/src/DAMA/DoctrineTestBundle/DependencyInjection/DoctrineTestCompilerPass.php b/src/DAMA/DoctrineTestBundle/DependencyInjection/DoctrineTestCompilerPass.php index e9c4260..cee7a00 100644 --- a/src/DAMA/DoctrineTestBundle/DependencyInjection/DoctrineTestCompilerPass.php +++ b/src/DAMA/DoctrineTestBundle/DependencyInjection/DoctrineTestCompilerPass.php @@ -110,6 +110,10 @@ private function registerStaticCache( $cache->setClass(Psr6StaticArrayCache::class); $cache->setArgument(0, $namespace); // make sure we have no key collisions } elseif (is_a($originalCacheServiceDefinition->getClass(), Cache::class, true)) { + @trigger_error( + sprintf('Configuring "%s" cache instances is deprecated since dama/doctrine-test-bundle v7.3.0 and will not be supported in 8.0. Upgrade to PSR-6 caches instead.', Cache::class), + E_USER_DEPRECATED + ); $cache->setClass(StaticArrayCache::class); $cache->addMethodCall('setNamespace', [$namespace]); // make sure we have no key collisions } else { diff --git a/src/DAMA/DoctrineTestBundle/Doctrine/Cache/StaticArrayCache.php b/src/DAMA/DoctrineTestBundle/Doctrine/Cache/StaticArrayCache.php index d722384..fa8610a 100644 --- a/src/DAMA/DoctrineTestBundle/Doctrine/Cache/StaticArrayCache.php +++ b/src/DAMA/DoctrineTestBundle/Doctrine/Cache/StaticArrayCache.php @@ -4,6 +4,9 @@ use Doctrine\Common\Cache\CacheProvider; +/** + * @deprecated since dama/doctrine-test-bundle v7.3.0 and will be removed in v8.0.0. Use Psr6StaticArrayCache instead. + */ class StaticArrayCache extends CacheProvider { /**