MAPG-191 don't pass data by reference to IContent

This commit is contained in:
bence committed 2020-07-05 00:25:34 +02:00
1 parent 091afb0aab
commit e17cf68007
4 files changed
+13 -6

No files matched your search

+2 -2
View File
@@ -6,10 +6,10 @@ class HtmlContent extends ContentBase
{
private string $view;
public function __construct(string $view, array &$data = [])
public function __construct(string $view, array $data = [])
{
$this->view = $view;
$this->data = &$data;
$this->data = $data;
}
public function render(): void