mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-25 10:06:26 +00:00
added soe missing deprecations
This commit is contained in:
@@ -60,6 +60,8 @@ final class ExtensionSet
|
||||
|
||||
foreach ($this->extensions as $extension) {
|
||||
if ($extension instanceof InitRuntimeInterface) {
|
||||
@trigger_error(sprintf('Implementing \Twig\Extension\InitRuntimeInterface on "%s" is deprecated since Twig 2.7 as the interface will be removed in 3.0.', get_class($extension)), E_USER_DEPRECATED);
|
||||
|
||||
$extension->initRuntime($env);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user