BadMethodCallException is typically used in conjunction with __call magic method.
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Exception thrown if a callback refers to an undefined method or if some arguments are missing.
$message
= NULL
, int $code
= ?
, Throwable $previous
= null
)
BadMethodCallException is typically used in conjunction with __call magic method.