mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-18 17:55:23 +00:00
Add the possibility to reset globals
This commit is contained in:
@@ -339,6 +339,11 @@ final class ExtensionSet
|
||||
return $globals;
|
||||
}
|
||||
|
||||
public function resetGlobals(): void
|
||||
{
|
||||
$this->globals = null;
|
||||
}
|
||||
|
||||
public function addTest(TwigTest $test): void
|
||||
{
|
||||
if ($this->initialized) {
|
||||
|
||||
Reference in New Issue
Block a user