diff --git a/lib/Widget/Validator.php b/lib/Widget/Validator.php
index <HASH>..<HASH> 100644
--- a/lib/Widget/Validator.php
+++ b/lib/Widget/Validator.php
@@ -448,11 +448,15 @@ class Validator extends WidgetProvider
     /**
      * Sets data for validation
      * 
-     * @param array $data
+     * @param array|Traversable $data
      * @return \Widget\Validator
      */
-    public function setData(array $data)
+    public function setData($data)
     {
+        if (!is_array($data) && !$data instanceof \Traversable) {
+            throw new UnexpectedTypeException($data, 'array or Traversable');
+        }
+            
         $this->data = $data;
         
         return $this;
updated to allowe instance ofTraversable as validator data