[php-src] Issue #7825: Add nullsafe call and index access
| From: | Vovan-VE | Date: | Fri, 15 Apr 2022 12:55:24 +0000 |
| Subject: | [php-src] Issue #7825: Add nullsafe call and index access | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241002@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7825
Comment Author: Vovan-VE
For both 1 and 2:
As if call
$f() would work as $f->__invoke() and $a[$i]
would work as $a->__get($i):
| operation | would work as |
| --- | --- |
| $f?->() | $f?->__invoke() |
| $a?->[$i] | $a?->__get($i) |
Shouldn't it?