A typical use for this exception, is in conjunction with the is_callable() function.
The BadFunctionCallException class
(PHP 5 >= 5.1.0)
Introducere
Exception thrown if a callback refers to an undefined function or if some arguments are missing.
Sinopsisul clasei
BadFunctionCallException
extends
LogicException
{
/* Proprietăți moștenite */
/* Metode moștenite */
}
tom at tomwardrop dot com ¶
3 years ago
Dawid Krysiak ¶
2 years ago
Direct known subclasses:
BadMethodCallException
So BadMethodCallException can be used in case the subject function is or should be a part of class / object - it's use defines the case more precisely.
