PHP traits, treat or threat?
by Nick Belhomme on Jan 31, 2012
- 2,835 views
Accessibility
Categories
Tags
Upload Details
Uploaded via SlideShare as Adobe PDF
Usage Rights
© All Rights Reserved
Statistics
- Favorites
- 10
- Downloads
- 64
- Comments
- 2
- Embed Views
- Views on SlideShare
- 2,313
- Total Views
- 2,835

Well, first, it is not about classes but methods in your example, and second, it does not fail.
The important thing to realize here is that you introduce a new *additional* alias. That additional alias does not do anything to the other existing aliases. Thus, the class that gets finally composed still misses an implementation for the abstract method, and the resulting fatal error tells you exactly that. 3 months ago Reply