Skip to content

Commit a4694c2

Browse files
fadrian06Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 242401a commit a4694c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flight/template/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function fetch(string $file, ?array $data = null): string
145145
if (is_array($data)) {
146146
extract($data, EXTR_SKIP);
147147
if ($this->preserveVars) {
148-
$this->vars += $data;
148+
$this->vars = array_merge($this->vars, $data);
149149
}
150150
}
151151

0 commit comments

Comments
 (0)