I'm extending a class:
class Foo extends Bar
I have a method that overrides a method on the parent class:
myMethod($param1, $param2)
I now wish to add an extra param in my child class, but I get a compatibility error. eg.
myMethod($param1, $param2, $param3)
What's the correct way to override a parent's class method so I can change the params?
Please note I am unable to change the parent class in any way.