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
@@ -22,7 +22,7 @@ use Twig\Node\Node;
*/
class BlockReferenceExpression extends AbstractExpression
{
public function __construct(Node $name, Node $template = null, $lineno, $tag = null)
public function __construct(Node $name, Node $template = null, int $lineno, string $tag = null)
{
$nodes = ['name' => $name];
if (null !== $template) {