This commit is contained in:
2020-09-08 01:30:13 +08:00
parent 6e8c7b0af1
commit e5fa034d8c
+12 -12
View File
@@ -88,18 +88,18 @@ class BaseObject implements Configure
* @return mixed * @return mixed
* @throws Exception * @throws Exception
*/ */
public function __call($name, $arguments) // public function __call($name, $arguments)
{ // {
if (!method_exists($this, $name)) { // if (!method_exists($this, $name)) {
throw new Exception("Not find " . get_called_class() . "::($name)"); // throw new Exception("Not find " . get_called_class() . "::($name)");
} else { // } else {
$result = $this->$name(...$arguments); // $result = $this->$name(...$arguments);
if (method_exists($this, 'defer')) { // if (method_exists($this, 'defer')) {
$this->defer(); // $this->defer();
} // }
return $result; // return $result;
} // }
} // }
/** /**
* @param $message * @param $message