Skip to content

Commit

Permalink
Fix wrong variable type check (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni authored Jul 9, 2024
1 parent 5ad3359 commit f56e09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/SourceFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function augment(mixed $data): mixed
if ($data === '@default') {
$value = $this->sourceFieldtype()->augment($this->defaultValueFromCascade());

return is_string($data) && Str::contains($value, '@field')
return is_string($value) && Str::contains($value, '@field')
? $this->sourceFieldtype()->augment($this->parseFieldValues($value))
: $value;
}
Expand Down

0 comments on commit f56e09d

Please sign in to comment.