1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00
PHP-Parser/test/code/prettyPrinter/expr/nullsafe.test
2020-08-09 12:08:05 +02:00

22 lines
239 B
Plaintext

Nullsafe operator
-----
<?php
$a?->b;
$a?->b($c);
$a?->b?->c;
$a?->b($c)?->d;
$a?->b($c)();
new $a?->b;
"{$a?->b}";
"$a?->b";
-----
!!php7
$a?->b;
$a?->b($c);
$a?->b?->c;
$a?->b($c)?->d;
$a?->b($c)();
new $a?->b();
"{$a?->b}";
"{$a}?->b";