added some type hints on constructors

This commit is contained in:
Fabien Potencier
2019-03-16 13:25:13 +01:00
parent 241f95cb25
commit 1dead73882
52 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ use Twig\Compiler;
*/
class ForLoopNode extends Node
{
public function __construct($lineno, $tag = null)
public function __construct(int $lineno, string $tag = null)
{
parent::__construct([], ['with_loop' => false, 'ifexpr' => false, 'else' => false], $lineno, $tag);
}