1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 09:29:47 +01:00
PHP-Parser/test/code/prettyPrinter/expr/match.test

18 lines
215 B
Plaintext
Raw Normal View History

Match
-----
<?php
echo match (1) {
0, 1 => 'Foo',
// Comment
2 => 'Bar',
default => 'Foo',
};
-----
!!php7
echo match (1) {
0, 1 => 'Foo',
// Comment
2 => 'Bar',
default => 'Foo',
};