mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
22 lines
239 B
Plaintext
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"; |