mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 12:57:05 +00:00
Remove deprecation arg
This commit is contained in:
@@ -60,8 +60,9 @@ final class EscaperExtension extends AbstractExtension
|
||||
/**
|
||||
* @deprecated since Twig 3.10
|
||||
*/
|
||||
public function setEnvironment(Environment $environment, bool $triggerDeprecation = true): void
|
||||
public function setEnvironment(Environment $environment): void
|
||||
{
|
||||
$triggerDeprecation = \func_num_args() > 1 ? func_get_arg(1) : true;
|
||||
if ($triggerDeprecation) {
|
||||
trigger_deprecation('twig/twig', '3.10', 'The "%s()" method is deprecated and not needed if you are using methods from "Twig\Runtime\EscaperRuntime".', __METHOD__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user