Skip to content

Commit 872de8d

Browse files
committed
Fix
1 parent f3d9f97 commit 872de8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/functions.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88

99
if(!function_exists("json_validate")) {
10-
function json_validate()
10+
function json_validate(string $json) : bool
1111
{
1212
try {
13-
json_decode($json, JSON_THROW_ON_ERROR);
13+
json_decode($json, flags: JSON_THROW_ON_ERROR);
1414
return true;
1515
} catch(\JsonException) {
1616
return false;

0 commit comments

Comments
 (0)