You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
42
+
if ($functionName === "json_decode") {
43
+
if (count($node->args) == 4) {
44
+
if ($this->argValueIncludeJSONTHROWONERROR($node->args[3])) {
45
+
return [];
46
+
}
47
+
}
48
+
}
49
+
if ($functionName === "json_encode") {
50
+
if (count($node->args) >= 2) {
51
+
if ($this->argValueIncludeJSONTHROWONERROR($node->args[1])) {
52
+
return [];
53
+
}
54
+
}
55
+
}
56
+
}
57
+
38
58
return ["Function $functionName is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\\$functionName;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library."];
0 commit comments