mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
RestResultWithObjects : properly init objects array (#231)
This commit is contained in:
@@ -135,8 +135,15 @@ class ObjectResult
|
||||
*/
|
||||
class RestResultWithObjects extends RestResult
|
||||
{
|
||||
/** @var DBObject[] */
|
||||
public $objects;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->objects = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Report the given object
|
||||
*
|
||||
@@ -185,6 +192,7 @@ class RestResultWithObjects extends RestResult
|
||||
|
||||
class RestResultWithRelations extends RestResultWithObjects
|
||||
{
|
||||
/** @var array */
|
||||
public $relations;
|
||||
|
||||
public function __construct()
|
||||
|
||||
Reference in New Issue
Block a user