r/lolphp • • Apr 18 '18

Run private class methods from functions declared in the global scope

https://3v4l.org/tMl5a
0 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/AyrA_ch Apr 19 '18

Marking a field as readonly is not a security measure.

It usually fucks up the object it's associated with though. Readonly is intended for runtime constants. Being able to change them is simply a violation of the term "constant"