If a method receives an incorrect number of parameters an exception BadMethodCallException is thrown instead of a warning