Skip to content

Commit

Permalink
fix: Null to string
Browse files Browse the repository at this point in the history
(cherry picked from commit b2164e6)
  • Loading branch information
Chance-fyi committed Aug 28, 2023
1 parent 6cc190c commit 926f55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orm/illuminate/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function getOldValue($model, string $key): string

$val = json_decode($value, true);
if (!isset($jsonKey) || is_null($val) || !is_array($val)) {
return $value;
return (string) $value;
}

foreach (explode('->', $jsonKey) as $k) {
Expand Down

0 comments on commit 926f55c

Please sign in to comment.