changed classes marked as @final to final

This commit is contained in:
Fabien Potencier
2019-04-23 17:10:12 +02:00
parent 8613aad80c
commit e8a21cfe97
11 changed files with 11 additions and 53 deletions
+1 -7
View File
@@ -25,17 +25,11 @@ use Twig\Source;
* display_end, constructor_start, constructor_end, and class_end.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @final since Twig 2.4.0
*/
class ModuleNode extends Node
final class ModuleNode extends Node
{
public function __construct(Node $body, AbstractExpression $parent = null, Node $blocks, Node $macros, Node $traits, $embeddedTemplates, Source $source)
{
if (__CLASS__ !== \get_class($this)) {
@trigger_error('Overriding '.__CLASS__.' is deprecated since Twig 2.4.0 and the class will be final in 3.0.', E_USER_DEPRECATED);
}
$nodes = [
'body' => $body,
'blocks' => $blocks,