Skip to content

Commit 15c2416

Browse files
committed
minor symfony#16641 Tweaking deprecation message to include class name (weaverryan)
This PR was squashed before being merged into the 2.8 branch (closes symfony#16641). Discussion ---------- Tweaking deprecation message to include class name | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Before: > Resource checking through ResourceInterface::isFresh() is deprecated since 2.8 > and will be removed in 3.0 After: > The class Symfony\Bundle\AsseticBundle\Config\AsseticResource is performing > resource checking through ResourceInterface::isFresh(), which is deprecated since 2.8 > and will be removed in 3.0 Commits ------- 07d627d Tweaking deprecation message to include class name
2 parents 2dbb75a + 07d627d commit 15c2416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)