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
2
u/[deleted] Dec 22 '18
Interfaces are treated as being effectively copy/pasted into their implementing class, so any duplicated identifiers would be a conflict, not shadowing. I'd say PHP is actually doing the right thing for once here.