Skip to content

Commit 7140b52

Browse files
minor symfony#23058 [TwigBundle] fix used class name in deprecation message (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBundle] fix used class name in deprecation message | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- a4caa16 fix used class name in deprecation message
2 parents 9d24e80 + a4caa16 commit 7140b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/CacheWarmer/TemplateCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct($container, \Traversable $iterator)
4141
$this->container = $container;
4242
} elseif ($container instanceof Environment) {
4343
$this->twig = $container;
44-
@trigger_error(sprintf('Using a "%s" as first argument of %s is deprecated since version 3.4 and will be unsupported in version 4.0. Use a %s instead.', Environment::class, __CLASS__, Container::class), E_USER_DEPRECATED);
44+
@trigger_error(sprintf('Using a "%s" as first argument of %s is deprecated since version 3.4 and will be unsupported in version 4.0. Use a %s instead.', Environment::class, __CLASS__, ContainerInterface::class), E_USER_DEPRECATED);
4545
} else {
4646
throw new \InvalidArgumentException(sprintf('%s only accepts instance of Psr\Container\ContainerInterface as first argument.', __CLASS__));
4747
}

0 commit comments

Comments
 (0)