Skip to content

Commit 294bdf1

Browse files
authored
Merge pull request #82 from jiaconcon/patch-1
Update Common.php
2 parents 91e8a8e + 45939ee commit 294bdf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected static function safeJsonString($fieldValue)
5757

5858
protected static function is_json($str): bool
5959
{
60-
if (!is_string($str)) {
60+
if (!is_string($str) || is_numeric($str)) {
6161
return false;
6262
}
6363
$json = json_decode($str);

0 commit comments

Comments
 (0)