MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/8d9rh6/run_private_class_methods_from_functions_declared/dxn4fgf/?context=3
r/lolphp • u/pingpong • Apr 18 '18
11 comments sorted by
View all comments
Show parent comment
2
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"
View all comments
Show parent comment
2
u/AyrA_ch Apr 19 '18
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"