mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
f9d01e46fe
For traits and interfaces, include the name of the relevant trait (or interface) in the error message, the same way it is included for readonly classes.
12 lines
217 B
PHP
12 lines
217 B
PHP
--TEST--
|
|
#[AllowDynamicProperties] cannot be applied to trait
|
|
--FILE--
|
|
<?php
|
|
|
|
#[AllowDynamicProperties]
|
|
trait Test {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot apply #[AllowDynamicProperties] to trait Test in %s on line %d
|