Solid, Solid Principles, PHP, Software Development, Software Engineering.
and frameworks. Using this principle, the code should not depend on the class hierarchy. Therefore, it should not use a cast or an “instanceof” operator. This principle imposes some rules on subclasses, and more specifically on their methods. Rules Let’s look at some of this rules in details: