mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
RFC: https://wiki.php.net/rfc/nullsafe_operator Closes GH-5619. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
12 lines
193 B
PHP
12 lines
193 B
PHP
--TEST--
|
|
Test nullsafe property pre increment
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = null;
|
|
var_dump($foo?->bar++);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Can't use nullsafe operator in write context in %s.php on line 4
|