Skip to content

Commit

Permalink
fix: Null to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance-fyi committed Aug 31, 2023
1 parent b16ba4e commit 474c52d
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 @@ -111,7 +111,7 @@ public function getOldValue($model, string $key): string
return json_encode($value, JSON_UNESCAPED_UNICODE);
}

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

0 comments on commit 474c52d

Please sign in to comment.