MAPG-191 don't pass data by reference to IContent
This commit is contained in:
4 files changed
+13
-6
No files matched your search
@@ -6,7 +6,12 @@ abstract class ContentBase implements IContent
|
||||
{
|
||||
protected array $data;
|
||||
|
||||
public function &getData(): array
|
||||
public function setData(array $data): void
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user