summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorPierrick Charron <pierrick@php.net>2016-05-01 18:47:08 -0400
committerPierrick Charron <pierrick@php.net>2016-05-01 18:47:08 -0400
commit0aed2cc2a440e7be17552cc669d71fdd24d1204a (patch)
tree19bb9bb48c0d634d502112b84c49795b998e64cf /ext/reflection/php_reflection.c
parent770a6d1342fcc30bb273ac6d65fc9fc057b1ce21 (diff)
downloadphp-git-0aed2cc2a440e7be17552cc669d71fdd24d1204a.tar.gz
Allow catching multiple exception types in a single catch statement
This commit add the possibility to catch multiple exception types in a single catch statement to avoid code duplication. try { // Some code... } catch (ExceptionType1 | ExceptionType2 $e) { // Code to handle the exception } catch (\Exception $e) { // ... }
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions