Skip to content

Commit

Permalink
Fixed issue with dynamic model calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sinemacula-ben committed May 28, 2024
1 parent 2c2fc84 commit 2bb4287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(
*/
public static function __callStatic(string $method, array $arguments): mixed
{
return call_user_func_array([new static, $method], ...$arguments);
return call_user_func_array([new static, $method], $arguments);
}

/**
Expand All @@ -79,7 +79,7 @@ public function __call(string $method, array $arguments): mixed
$this->applyCriteria();
$this->applyScopes();

$result = call_user_func_array([$this->model, $method], ...$arguments);
$result = call_user_func_array([$this->model, $method], $arguments);

return $this->resetAndReturn($result);
}
Expand Down

0 comments on commit 2bb4287

Please sign in to comment.