Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Apr 21, 2024
1 parent 62064ac commit 4fe60c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Execution/Arguments/NestedMorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ protected function morphTypeValue(mixed $morphType): string
if ($morphType instanceof \BackedEnum) {
$value = $morphType->value;
if (! is_string($value)) {
throw new DefinitionException("Enum {$morphType::class} must be string backed.");
$enumClass = $morphType::class;
throw new DefinitionException("Enum {$enumClass} must be string backed.");
}

return $value;
Expand Down

0 comments on commit 4fe60c9

Please sign in to comment.