phpmethodsstandards-compliance

Declaration of Methods should be Compatible with Parent Methods


Strict Standards: Declaration of childClass::customMethod() should be compatible with that of parentClass::customMethod()

What are possible causes of this error in PHP? Where can I find information about what it means to be compatible?


Solution

  • childClass::customMethod() has different arguments, or a different access level (public/private/protected) than parentClass::customMethod().