3 ms·
For some reason the PHP developers think it should be Ok to have a class in your code with the same name as a namespace you're using. I just tested this out wit
by Scriptor 17y ago
For some reason the PHP developers think it should be Ok to have a class in your code with the same name as a namespace you're using. I just tested this out with Python and it seems that doing the same thing simply gives you what was last defined, so if you have import lib and then class lib you will just end up with lib as being the class.
Frankly, it's insulting to me that the PHP team doesn't think I have the skills needed to not name my classes after namespace I imported.