This commit is contained in:
Fabien Potencier
2020-06-22 08:15:56 +02:00
parent c2019904bb
commit c38f96318b
12 changed files with 18 additions and 19 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class ModuleNode extends Node
{
public function __construct(Node $body, ?AbstractExpression $parent, Node $blocks, Node $macros, Node $traits, $embeddedTemplates, Source $source)
{
if (__CLASS__ !== \get_class($this)) {
if (__CLASS__ !== static::class) {
@trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED);
}