diff --git a/src/Valitron/Validator.php b/src/Valitron/Validator.php index 5fc5c84..db79f39 100644 --- a/src/Valitron/Validator.php +++ b/src/Valitron/Validator.php @@ -889,6 +889,11 @@ class Validator if (is_array($identifiers) && count($identifiers) === 0) { return array($data, false); } + + // Catches the case where the data isn't an array or object + if (is_scalar($data)) { + return array($data, false); + } $identifier = array_shift($identifiers);