A typical use for this exception, is in conjunction with the is_callable() function.
The BadFunctionCallException class
(PHP 5 >= 5.1.0)
Introduction
Exception thrown if a callback refers to an undefined function or if some arguments are missing.
Class synopsis
BadFunctionCallException
extends
LogicException
{
/* Inherited methods */
}
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.
