diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 1d30e22..0e98596 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -86,7 +86,7 @@ class Validator * @param string $langDir * @throws \InvalidArgumentException */ - public function __construct($data, $fields = array(), $lang = null, $langDir = null) + public function __construct($data = array(), $fields = array(), $lang = null, $langDir = null) { // Allows filtering of used input fields against optional second array of field names allowed // This is useful for limiting raw $_POST or $_GET data to only known fields