mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2025-01-08 13:49:15 +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";
|