xp-framework/reflection

Support `readonly` class modifier

Closed this issue · 1 comments

While it already works for properties, the readonly modifier does show up for classes:

$ XP_RT=master xp -w 'readonly class T { } return \lang\Reflection::of(T::class)->modifiers()'
lang.reflection.Modifiers<public>
#                               ^
# Missing "readonly" here -----´

See https://wiki.php.net/rfc/readonly_classes