Tweaking deprecation message to include class name
This commit is contained in:
parent
2dbb75aef4
commit
07d627de0f
@ -29,7 +29,7 @@ class BCResourceInterfaceChecker extends SelfCheckingResourceChecker
|
|||||||
|
|
||||||
public function isFresh(ResourceInterface $resource, $timestamp)
|
public function isFresh(ResourceInterface $resource, $timestamp)
|
||||||
{
|
{
|
||||||
@trigger_error('Resource checking through ResourceInterface::isFresh() is deprecated since 2.8 and will be removed in 3.0', E_USER_DEPRECATED);
|
@trigger_error(sprintf('The class "%s" is performing resource checking through ResourceInterface::isFresh(), which is deprecated since 2.8 and will be removed in 3.0', get_class($resource)), E_USER_DEPRECATED);
|
||||||
|
|
||||||
return parent::isFresh($resource, $timestamp); // For now, $metadata features the isFresh() method, so off we go (quack quack)
|
return parent::isFresh($resource, $timestamp); // For now, $metadata features the isFresh() method, so off we go (quack quack)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user