I can override the PHP method in the child class and change the parameters in the signature as shown below.
class theParent { function myMethod($param1) {
I tested this and it works great and does not cause any errors. My question is, is this bad form? Or the basic principle of OOP?
If the parent method is declared abstract, child signatures cannot be rejected. This is supposedly a mechanism to use if you need to enforce this aspect of the interface?
source share