Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Aug 27, 2024
1 parent 48a8c9b commit abd930e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Models/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ protected static function newFactory(): OptionFactory
protected function casts(): array
{
return [
'value' => Root::instance()->options->resolveCast($this->key),
'value' => match (true) {
is_null($this->key) => 'string',
default => Root::instance()->options->resolveCast($this->key),
},
];
}
}

0 comments on commit abd930e

Please sign in to comment.