mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
14 lines
251 B
PHP
14 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
|