Skip to content

Commit

Permalink
[1.x] Should fix static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Israel Baeza Cabrera committed Sep 4, 2024
1 parent 34e56c1 commit 0670a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ protected function restoreCollection(ModelIdentifier $value): Collection
*/
protected function restoreModel(ModelIdentifier $value): Model
{
return $this->getQueryForModelRestoration( // @phpstan-ignore-line
return $this->getQueryForModelRestoration(
(new $value->class)->setConnection($value->connection), $value->id
)->useWritePdo()->firstOrFail()->load($value->relations ?? []); // @phpstan-ignore-line
}
Expand Down

0 comments on commit 0670a23

Please sign in to comment.