mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-02 17:28:27 +01:00
537b59d4d1
Catch::$type is now an array Catch::$types.
19 lines
186 B
Plaintext
19 lines
186 B
Plaintext
Multi catch
|
|
-----
|
|
<?php
|
|
try {
|
|
$x;
|
|
} catch (X|Y $e1) {
|
|
$y;
|
|
} catch (\A|B\C $e2) {
|
|
$z;
|
|
}
|
|
-----
|
|
!!php7
|
|
try {
|
|
$x;
|
|
} catch (X|Y $e1) {
|
|
$y;
|
|
} catch (\A|B\C $e2) {
|
|
$z;
|
|
} |