[php-src] Issue #7825: Add nullsafe call and index access
| From: | KapitanOczywisty | Date: | Fri, 15 Apr 2022 13:01:29 +0000 |
| Subject: | [php-src] Issue #7825: Add nullsafe call and index access | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241005@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7825
Comment Author: KapitanOczywisty
Not really. In general:
$f?->() => $f !== null ? $f() : null
$a?->[$i] => $a !== null ? $a[$i] : null