BadMethodCallException is typically used in conjunction with __call magic method.
PHP - Manual: BadMethodCallException
2024-12-22
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
当一个回调方法是一个未定义的方法或缺失一些参数时会抛出该异常。
BadMethodCallException is typically used in conjunction with __call magic method.
官方地址:https://www.php.net/manual/en/class.badmethodcallexception.php