mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-14 10:08:36 +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;
|
|
} |