DEV Community

loading...

Discussion on: How to deprecate a type in php

greg0ire profile image
Grégoire Paris Author

This solution is enough in some situations. In others, you will need inheritance, and in some more complicated situations, you will have to resort to class aliases. That's what I failed to make perfectly clear in my article.