removed Parser::isReservedMacroName()

This commit is contained in:
Fabien Potencier
2019-04-23 18:23:16 +02:00
parent 12972d0032
commit 2fa26d6f4a
-10
View File
@@ -244,16 +244,6 @@ class Parser
$this->macros[$name] = $node;
}
/**
* @deprecated since Twig 2.7 as there are no reserved macro names anymore, will be removed in 3.0.
*/
public function isReservedMacroName($name)
{
@trigger_error(sprintf('The "%s" method is deprecated since Twig 2.7 and will be removed in 3.0.', __METHOD__), E_USER_DEPRECATED);
return false;
}
public function addTrait($trait)
{
$this->traits[] = $trait;