xref: /PHP-8.4/Zend/tests/gh9136_2.phpt (revision 7b43d819)
1--TEST--
2GH-9136: Assertion when fetching property of magic constant in constant expression with nullsafe operator
3--FILE--
4<?php
5
6const C = __file__?->foo;
7
8?>
9--EXPECTF--
10Warning: Attempt to read property "foo" on string in %s on line %d
11