Skip to content

Commit 771ea38

Browse files
committed
fix: arguments using magic method were passed as array
1 parent 5bc4aaf commit 771ea38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Model/Resource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public function call($function, ...$arguments)
5151

5252
public function __call($name, $arguments)
5353
{
54-
return $this->call($name, $arguments);
54+
array_unshift($arguments, $name);
55+
return call_user_func_array([$this, 'call'], $arguments);
5556
}
5657

5758
public function __toString()

0 commit comments

Comments
 (0)