1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/Zend/tests/nullsafe_operator/006.phpt
Ilija Tovilo 9bf119832d Implement nullsafe ?-> operator
RFC: https://wiki.php.net/rfc/nullsafe_operator

Closes GH-5619.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
2020-07-24 10:05:03 +02:00

12 lines
184 B
PHP

--TEST--
Test nullsafe property post increment
--FILE--
<?php
$foo = null;
++$foo?->bar;
?>
--EXPECTF--
Fatal error: Can't use nullsafe operator in write context in %s.php on line 4