mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 04:46:49 +00:00
fix the version mergeGlobals() is deprecated since
This commit is contained in:
+1
-1
@@ -227,7 +227,7 @@ Testing Utilities
|
|||||||
Environment
|
Environment
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
* The ``Twig\Environment::mergeGlobals()`` method is deprecated as of Twig 3.13
|
* The ``Twig\Environment::mergeGlobals()`` method is deprecated as of Twig 3.14
|
||||||
and will be removed in Twig 4.0:
|
and will be removed in Twig 4.0:
|
||||||
|
|
||||||
Before::
|
Before::
|
||||||
|
|||||||
+2
-2
@@ -837,11 +837,11 @@ class Environment
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated since Twig 3.13
|
* @deprecated since Twig 3.14
|
||||||
*/
|
*/
|
||||||
public function mergeGlobals(array $context): array
|
public function mergeGlobals(array $context): array
|
||||||
{
|
{
|
||||||
trigger_deprecation('twig/twig', '3.13', 'The "%s" method is deprecated.', __METHOD__);
|
trigger_deprecation('twig/twig', '3.14', 'The "%s" method is deprecated.', __METHOD__);
|
||||||
|
|
||||||
return $context + $this->getGlobals();
|
return $context + $this->getGlobals();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user