We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
it_returns_false_with_an_empty_string_passed
1 parent a999e7d commit e4a9490Copy full SHA for e4a9490
src/json.php
@@ -3,7 +3,7 @@
3
if (!function_exists('is_json')) {
4
function is_json($string, $return = false)
5
{
6
- if (!is_string($string)) {
+ if (!is_string($string) || empty($string)) {
7
return false;
8
}
9
0 commit comments