Add type hints to private properties

This commit is contained in:
Fabien Potencier
2023-12-13 18:52:03 +01:00
parent ffa55e8cae
commit 35640b6d2d
49 changed files with 342 additions and 186 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ use Twig\Node\Expression\AssignNameExpression;
*/
class ForNode extends Node
{
private $loop;
private ForLoopNode $loop;
public function __construct(AssignNameExpression $keyTarget, AssignNameExpression $valueTarget, AbstractExpression $seq, ?Node $ifexpr, Node $body, ?Node $else, int $lineno, string $tag = null)
{