Skip to content

Commit 4d6d9cb

Browse files
committed
Update JSONDecode.php
1 parent 310fc49 commit 4d6d9cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/JSONDecode.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,23 @@ private function isInputLength($jsonString) : bool
240240
*/
241241
private function isInputNull($jsonString) : bool
242242
{
243-
return 'null' === $value ? true : false;
243+
return 'null' === $$jsonString ? true : false;
244244
}
245245

246246
/**
247247
* Checks if input value is string true
248248
*/
249249
private function isInputTextTrue($jsonString) : bool
250250
{
251-
return 'true' === $value ? true : false;
251+
return 'true' === $jsonString ? true : false;
252252
}
253253

254254
/**
255255
* Checks if input value is string false
256256
*/
257257
private function isInputTextFalse($jsonString) : bool
258258
{
259-
return 'false' === $value ? true : false;
259+
return 'false' === $jsonString ? true : false;
260260
}
261261

262262

@@ -265,7 +265,7 @@ private function isInputTextFalse($jsonString) : bool
265265
*/
266266
private function doesInputHasJsonSymbols($jsonString) : bool
267267
{
268-
return '{' != $value[0] && '[' != $value[0] && '"' != $value[0] ? true : false;
268+
return '{' != $jsonString[0] && '[' != $jsonString[0] && '"' != $jsonString[0] ? true : false;
269269
}
270270

271271
/**

0 commit comments

Comments
 (0)