mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 17:50:13 +02:00
Minor change, just removing unnecessary code
This commit is contained in:
parent
e51d33a850
commit
1845ecf021
|
@ -7,7 +7,7 @@ class JSON extends AbstractRule
|
|||
|
||||
public function validate($input)
|
||||
{
|
||||
return (json_decode($input));
|
||||
return (bool) (json_decode($input));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue