--TEST-- GH-15419: Readonly classes may not declare promoted properties with hooks --FILE-- $value; }, ) {} } ?> --EXPECTF-- Fatal error: Hooked properties cannot be readonly in %s on line %d