From ab793257adc5cac2ff8d59558c087ea7503b519f Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 26 Mar 2019 18:46:48 +0100 Subject: [PATCH] Visual Console Refactor: minor fix Former-commit-id: 4350b8342f0a813c7283bd8a2bf2a3a76b677c5a --- .../include/rest-api/models/VisualConsole/Container.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Container.php b/pandora_console/include/rest-api/models/VisualConsole/Container.php index 47011efd0f..90c5f1e683 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Container.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Container.php @@ -179,7 +179,7 @@ final class Container extends Model * * @override Model::fetchDataFromDB. */ - public static function fetchDataFromDB(array $filter) + protected static function fetchDataFromDB(array $filter) { // Due to this DB call, this function cannot be unit tested without // a proper mock. @@ -189,8 +189,7 @@ final class Container extends Model throw new \Exception('error fetching the data from the DB'); } - // New instance. - return new static($row); + return $row; }