mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
12 lines
179 B
PHP
12 lines
179 B
PHP
--TEST--
|
|
Test nullsafe in unset
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = null;
|
|
unset($foo?->bar->baz);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Can't use nullsafe operator in write context in %s.php on line 4
|