We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90ba7bb commit 96a9d12Copy full SHA for 96a9d12
1 file changed
system/Exceptions/CastException.php
@@ -18,19 +18,19 @@ public static function forInvalidJsonFormatException(int $error)
18
{
19
throw new static(lang('Cast.jsonErrorDepth'));
20
}
21
- else if($error == JSON_ERROR_STATE_MISMATCH)
+ else if($error === JSON_ERROR_STATE_MISMATCH)
22
23
throw new static(lang('Cast.jsonErrorStateMismatch'));
24
25
- else if($error == JSON_ERROR_CTRL_CHAR)
+ else if($error === JSON_ERROR_CTRL_CHAR)
26
27
throw new static(lang('Cast.jsonErrorCtrlChar'));
28
29
- else if($error == JSON_ERROR_SYNTAX)
+ else if($error === JSON_ERROR_SYNTAX)
30
31
throw new static(lang('Cast.jsonErrorSyntax'));
32
33
- else if($error == JSON_ERROR_UTF8)
+ else if($error === JSON_ERROR_UTF8)
34
35
throw new static(lang('Cast.jsonErrorUtf8'));
36
0 commit comments