mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
removed Parser::isReservedMacroName()
This commit is contained in:
@@ -244,16 +244,6 @@ class Parser
|
|||||||
$this->macros[$name] = $node;
|
$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)
|
public function addTrait($trait)
|
||||||
{
|
{
|
||||||
$this->traits[] = $trait;
|
$this->traits[] = $trait;
|
||||||
|
|||||||
Reference in New Issue
Block a user