PHP 7.1.0 Release Candidate 4 Released

The BadMethodCallException class


Exception thrown if a callback refers to an undefined method or if some arguments are missing.

Class synopsis

BadMethodCallException extends BadFunctionCallException {
/* Inherited methods */
final public string Exception::getMessage ( void )
final public int Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
add a note add a note

User Contributed Notes 1 note

piotr at polak dot ro
3 months ago
BadMethodCallException is typically used in conjunction with __call magic method.
To Top