mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 19:06:40 +00:00
Remove runtime deprecation that prevent smooth update
This commit is contained in:
@@ -49,6 +49,8 @@ final class ExtensionSet
|
||||
|
||||
/**
|
||||
* Initializes the runtime environment.
|
||||
*
|
||||
* @deprecated since Twig 2.7
|
||||
*/
|
||||
public function initRuntime(Environment $env)
|
||||
{
|
||||
@@ -60,8 +62,6 @@ 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