mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
13 lines
251 B
PHP
13 lines
251 B
PHP
--TEST--
|
|
Readonly classes cannot apply the #[AllowDynamicProperties] attribute
|
|
--FILE--
|
|
<?php
|
|
|
|
#[AllowDynamicProperties]
|
|
readonly class Foo
|
|
{
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot apply #[AllowDynamicProperties] to readonly class Foo in %s on line %d
|