Skip to content

Commit

Permalink
Merge pull request #9 from sinemacula/feature/initial-commit
Browse files Browse the repository at this point in the history
Fixed issue with dynamic model calls
  • Loading branch information
sinemacula-ben authored May 28, 2024
2 parents b04d435 + 2bb4287 commit 09c47bd
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 09c47bd

Please sign in to comment.