Skip to content

Commit

Permalink
Unnecessary explicitness :|
Browse files Browse the repository at this point in the history
  • Loading branch information
fadrian06 committed Jun 3, 2024
1 parent f3453ca commit a68fc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flight/template/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a68fc32

Please sign in to comment.