- Added a loop index in AbstractLoop control struct.
This commit is contained in:
parent
e737e82d7e
commit
633926b1db
@ -27,7 +27,7 @@ abstract class AbstractLoop implements ControlStructure {
|
|||||||
'token' => "end{$token}",
|
'token' => "end{$token}",
|
||||||
];
|
];
|
||||||
|
|
||||||
return "<?php $token ($arguments): $name = ( $name ?? 0 ) + 1; ?>";
|
return "<?php $token ($arguments): \$__loop_index = $name = ( $name ?? 0 ) + 1; ?>";
|
||||||
|
|
||||||
case "endwhile":
|
case "endwhile":
|
||||||
case "endforeach":
|
case "endforeach":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user