A typical use for this exception, is in conjunction with the is_callable() function.
La classe BadFunctionCallException
(PHP 5 >= 5.1.0)
Introduction
Exception émise si une fonction de rappel n'existe pas ou si certains de ses arguments sont manquants.
Synopsis de la classe
BadFunctionCallException
extends
LogicException
{
/* Méthodes héritées */
}
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.
