Skip to content

Commit

Permalink
Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Sep 30, 2024
1 parent 4bf84aa commit f46949c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Json
{
public static function isJson($value): bool
{
if (is_array($value) || is_object($value) || (is_string($value) && !str_starts_with('[', $value) && !str_starts_with('{', $value))) {
if (is_array($value) || is_object($value) || (is_string($value) && !str_starts_with($value, '[') && !str_starts_with($value, '{'))) {
return false;
}

Expand Down

0 comments on commit f46949c

Please sign in to comment.