php8 vc context fixes
This commit is contained in:
parent
a728d384d7
commit
edd24cd388
|
@ -57,7 +57,7 @@ final class ModuleGraph extends Item
|
|||
*
|
||||
* @overrides Item->encode.
|
||||
*/
|
||||
protected function encode(array $data): array
|
||||
protected static function encode(array $data): array
|
||||
{
|
||||
$return = parent::encode($data);
|
||||
|
||||
|
@ -91,7 +91,7 @@ final class ModuleGraph extends Item
|
|||
*
|
||||
* @param array $data Unknown input data structure.
|
||||
*
|
||||
* @return integer Valid identifier of an agent.
|
||||
* @return mixed Valid identifier of an agent.
|
||||
*/
|
||||
private static function extractIdCustomGraph(array $data)
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ final class ModuleGraph extends Item
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getListCustomGraph():array
|
||||
public static function getListCustomGraph():array
|
||||
{
|
||||
include_once 'include/functions_custom_graphs.php';
|
||||
enterprise_include_once('include/functions_metaconsole.php');
|
||||
|
@ -487,7 +487,7 @@ final class ModuleGraph extends Item
|
|||
*
|
||||
* @return array Of inputs.
|
||||
*
|
||||
* @throws Exception On error.
|
||||
* @throws \Exception On error.
|
||||
*/
|
||||
public static function getFormInputs(array $values): array
|
||||
{
|
||||
|
@ -498,7 +498,7 @@ final class ModuleGraph extends Item
|
|||
$inputs = Item::getFormInputs($values);
|
||||
|
||||
if (is_array($inputs) !== true) {
|
||||
throw new Exception(
|
||||
throw new \Exception(
|
||||
'[ModuleGraph]::getFormInputs parent class return is not an array'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue