Skip to content

Commit

Permalink
Update BelongsToSelect.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed May 9, 2022
1 parent bba4e98 commit a800963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/BelongsToSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function setUp(): void
});

$this->exists(
static fn (BelongsToSelect $component): ?string => ($relationship = $component->getRelationship()) ? $relationship->getModel()::class : null,
static fn (BelongsToSelect $component): string => $component->getRelationship()->getModel()::class,
static fn (BelongsToSelect $component): string => $component->getRelationship()->getOwnerKeyName(),
);

Expand Down

0 comments on commit a800963

Please sign in to comment.