parser/tests/0021/code.php
Saif Eddin Gmati 558ce71563
feat: add test generator (#134)
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com>
closes https://github.com/ryangjchandler/php-parser-rs/issues/130
2022-11-29 23:19:51 +00:00

26 lines
221 B
PHP

<?php
if ($a):
$a;
endif;
if ($a):
$a;
else:
$b;
endif;
if (true):
$a;
elseif ($foo->bar() && $baz->bar?->qux()):
$b;
endif;
if (true):
$a;
elseif (true):
$b;
elseif (true):
$c;
endif;