mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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
10 lines
220 B
PHP
10 lines
220 B
PHP
--TEST--
|
|
::class on an expression cannot be used inside constant expressions
|
|
--FILE--
|
|
<?php
|
|
|
|
const A = [0]::class;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: (expression)::class cannot be used in constant expressions in %s on line %d
|