Skip to content

Commit 96a9d12

Browse files
authored
Update CastException.php
1 parent 90ba7bb commit 96a9d12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Exceptions/CastException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ public static function forInvalidJsonFormatException(int $error)
1818
{
1919
throw new static(lang('Cast.jsonErrorDepth'));
2020
}
21-
else if($error == JSON_ERROR_STATE_MISMATCH)
21+
else if($error === JSON_ERROR_STATE_MISMATCH)
2222
{
2323
throw new static(lang('Cast.jsonErrorStateMismatch'));
2424
}
25-
else if($error == JSON_ERROR_CTRL_CHAR)
25+
else if($error === JSON_ERROR_CTRL_CHAR)
2626
{
2727
throw new static(lang('Cast.jsonErrorCtrlChar'));
2828
}
29-
else if($error == JSON_ERROR_SYNTAX)
29+
else if($error === JSON_ERROR_SYNTAX)
3030
{
3131
throw new static(lang('Cast.jsonErrorSyntax'));
3232
}
33-
else if($error == JSON_ERROR_UTF8)
33+
else if($error === JSON_ERROR_UTF8)
3434
{
3535
throw new static(lang('Cast.jsonErrorUtf8'));
3636
}

0 commit comments

Comments
 (0)