Comment

Comment by GeneralTspoon

This won’t affect that case, as it uses stdClass (which is allowed to use dynamic properties).

This is only for cases where you have a specific class like User, and you don’t want people setting random dynamic properties on it.

If you do you can also mark the class with an annotation to allow dynamic properties.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton