UndefinedMethod
A method is called on a type that does not declare that method.
Example
Section titled “Example”<?phpclass User {}
$user = new User();$user->getName(); // User has no getName methodHow to fix
Section titled “How to fix”Add the method to the class, fix the method name, or correct the type of the variable.