Fix phpstan level 6
[MAILPOET-1969]
This commit is contained in:
@@ -235,7 +235,10 @@ class Sending {
|
||||
|
||||
public function __call($name, $args) {
|
||||
$obj = method_exists($this->queue, $name) ? $this->queue : $this->task;
|
||||
return call_user_func_array(array($obj, $name), $args);
|
||||
$callback = [$obj, $name];
|
||||
if (is_callable($callback)) {
|
||||
return call_user_func_array($callback, $args);
|
||||
}
|
||||
}
|
||||
|
||||
private function isQueueProperty($prop) {
|
||||
|
Reference in New Issue
Block a user