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
@@ -21,7 +21,7 @@ use Twig\Compiler;
*/
class BlockReferenceNode extends Node implements NodeOutputInterface
{
public function __construct($name, $lineno, $tag = null)
public function __construct(string $name, int $lineno, string $tag = null)
{
parent::__construct([], ['name' => $name], $lineno, $tag);
}