1--TEST--
2Readonly classes cannot apply the #[AllowDynamicProperties] attribute
3--FILE--
4<?php
5
6#[AllowDynamicProperties]
7readonly class Foo
8{
9}
10
11?>
12--EXPECTF--
13Fatal error: Cannot apply #[AllowDynamicProperties] to readonly class Foo in %s on line %d
14