diff --git a/flight/template/View.php b/flight/template/View.php index 51ed7c7..c5c5788 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -46,15 +46,14 @@ class View } /** - * Sets a template variable. - * - * @param string|iterable $key + * Sets a template variable + * @param string|array $key * @param mixed $value Value * @return $this */ public function set($key, $value = null) { - if (\is_iterable($key)) { + if (is_array($key)) { foreach ($key as $k => $v) { $this->vars[$k] = $v; }