[Serializer] Improve a deprecation message
This commit is contained in:
parent
96e418a14f
commit
eccbffb435
@ -50,7 +50,7 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
|
||||
$this->cache = $cache;
|
||||
|
||||
if (null !== $cache) {
|
||||
@trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED);
|
||||
@trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated since version 3.1. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user