diff --git a/flight/template/View.php b/flight/template/View.php index d347a50b..15e4fc87 100644 --- a/flight/template/View.php +++ b/flight/template/View.php @@ -118,10 +118,10 @@ public function render(string $file, ?array $data = null): void \extract($this->vars); - if (\is_array($data)) { + if (\is_array($data) === true) { \extract($data); - if ($this->preserveVars) { + if ($this->preserveVars === true) { $this->vars = \array_merge($this->vars, $data); } }