mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
While reviewing the existing tests in the `constexpr` directory, I found that some of the names were not updated to reflect the contents when the contents were changed in #9301. Follow-up to #15638
11 lines
240 B
PHP
11 lines
240 B
PHP
--TEST--
|
|
GH-9136: Assertion when fetching property of magic constant in constant expression with nullsafe operator
|
|
--FILE--
|
|
<?php
|
|
|
|
const C = __file__?->foo;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Attempt to read property "foo" on string in %s on line %d
|