mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 01:27:30 +01:00
e4b837e0c4
The list was getting unweildly. Also improve error message when parsing fails in pretty printer test and extend some tests.
27 lines
231 B
Plaintext
27 lines
231 B
Plaintext
if/elseif/else
|
|
-----
|
|
<?php
|
|
|
|
if ($expr) {
|
|
|
|
} elseif ($expr2) {
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
if ($expr) {
|
|
} else if ($expr2) {
|
|
} else {
|
|
}
|
|
-----
|
|
if ($expr) {
|
|
} elseif ($expr2) {
|
|
} else {
|
|
}
|
|
if ($expr) {
|
|
} else {
|
|
if ($expr2) {
|
|
} else {
|
|
}
|
|
} |