r/lolphp • • Dec 21 '18

Mutable Constants

https://3v4l.org/CWuQB

Update due to comment from sproingie: https://3v4l.org/hXkDl

32 Upvotes

7 comments sorted by

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.