Passed
Push — dependabot/composer/doctrine/d... ( bc1a80...bcc5a8 )
by
unknown
41:27 queued 36:06
created

src/Frontend/Core/Engine/FormEndNode.php (1 issue)

1
<?php
2
3
namespace Frontend\Core\Engine;
4
5
/**
6
 * Twig node for writing out a compiled version of a closing form tag.
7
 */
8
class FormEndNode extends \Twig_Node
0 ignored issues
show
Deprecated Code introduced by
The class Twig_Node has been deprecated: since Twig 2.7, use "Twig\Node\Node" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

8
class FormEndNode extends /** @scrutinizer ignore-deprecated */ \Twig_Node
Loading history...
9
{
10
    /**
11
     * @param int $lineNumber Line number in the template source file.
12
     * @param string $tag
13
     */
14
    public function __construct(int $lineNumber, string $tag)
15
    {
16
        parent::__construct([], [], $lineNumber, $tag);
17
    }
18
19
    /**
20
     * @param \Twig_Compiler $compiler
21
     */
22
    public function compile(\Twig_Compiler $compiler): void
23
    {
24
        $compiler
25
            ->addDebugInfo($this)
26
            ->write('echo \'</form>\';');
27
    }
28
}
29