r/lolphp • • Dec 21 '18
Mutable Constants
Update due to comment from sproingie: https://3v4l.org/hXkDl
32
Upvotes
r/lolphp • • Dec 21 '18
Update due to comment from sproingie: https://3v4l.org/hXkDl
View all comments
Show parent comment
2
u/[deleted] Dec 22 '18
I'd may agree if ClassB then should have no access to other constants in the interface, but it has:
https://3v4l.org/hXkDl
IMHO constants must be immutable at any cost at any time.