xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Implement null-safe instance operator `?->` #36

Closed thekid closed 6 years ago

thekid commented 6 years ago

Implements #9

$name= $user?->name();  // will be null if $user is null

See also https://wiki.php.net/rfc/nullsafe_calls and