mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
RFC: https://wiki.php.net/rfc/nullsafe_operator Closes GH-5619. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
13 lines
219 B
PHP
13 lines
219 B
PHP
--TEST--
|
|
Test nullsafe in binary op
|
|
--FILE--
|
|
<?php
|
|
|
|
(new stdClass)->{null?->x}->y;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined property: stdClass::$ in %s on line 3
|
|
|
|
Warning: Attempt to read property "y" on null in %s on line 3
|