minor #4290 fix the version mergeGlobals() is deprecated since (xabbuh)

This PR was merged into the 3.x branch.

Discussion
----------

fix the version mergeGlobals() is deprecated since

Commits
-------

f72c93db fix the version mergeGlobals() is deprecated since
This commit is contained in:
Fabien Potencier
2024-09-09 11:41:27 +02:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ Testing Utilities
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:
Before::
+2 -2
View File
@@ -837,11 +837,11 @@ class Environment
}
/**
* @deprecated since Twig 3.13
* @deprecated since Twig 3.14
*/
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();
}