Skip to content

Commit 07d627d

Browse files
weaverryanfabpot
authored andcommitted
Tweaking deprecation message to include class name
1 parent 2dbb75a commit 07d627d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Symfony/Component/Config/Resource/BCResourceInterfaceChecker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function supports(ResourceInterface $metadata)
2929

3030
public function isFresh(ResourceInterface $resource, $timestamp)
3131
{
32-
@trigger_error('Resource checking through ResourceInterface::isFresh() is deprecated since 2.8 and will be removed in 3.0', E_USER_DEPRECATED);
32+
@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);
3333

3434
return parent::isFresh($resource, $timestamp); // For now, $metadata features the isFresh() method, so off we go (quack quack)
3535
}

0 commit comments

Comments
 (0)