parser/tests/0023/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

19 lines
226 B
PHP

<?php
foreach ($a as &$b) {}
foreach ($a as $b => &$c) {}
switch ($a) {
case 0:
break;
case 1;
default:
}
foreach ($foo as [$baz, $car]) {}
foreach ($foo as $bar => $baz) {}
foreach ($foo as $bar) {}