From 7df41d62d6ef3ee42363ef06fdbb5d298f3edc4a Mon Sep 17 00:00:00 2001 From: Tommy Keswick Date: Thu, 2 Nov 2017 15:56:01 -0700 Subject: [PATCH] Issue #326: Fix statically called non-static method. --- auth/admin/classes/common/Configuration.php | 2 +- licensing/admin/classes/common/Configuration.php | 2 +- management/admin/classes/common/Configuration.php | 2 +- organizations/admin/classes/common/Configuration.php | 2 +- resources/admin/classes/common/Configuration.php | 2 +- usage/admin/classes/common/Configuration.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auth/admin/classes/common/Configuration.php b/auth/admin/classes/common/Configuration.php index 9f5b5c634..26df58951 100644 --- a/auth/admin/classes/common/Configuration.php +++ b/auth/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } } diff --git a/licensing/admin/classes/common/Configuration.php b/licensing/admin/classes/common/Configuration.php index 8601ab597..31f9825e1 100644 --- a/licensing/admin/classes/common/Configuration.php +++ b/licensing/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } } diff --git a/management/admin/classes/common/Configuration.php b/management/admin/classes/common/Configuration.php index 5ce3465c4..1c532851e 100644 --- a/management/admin/classes/common/Configuration.php +++ b/management/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } } diff --git a/organizations/admin/classes/common/Configuration.php b/organizations/admin/classes/common/Configuration.php index b336b484e..00f247631 100644 --- a/organizations/admin/classes/common/Configuration.php +++ b/organizations/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } } diff --git a/resources/admin/classes/common/Configuration.php b/resources/admin/classes/common/Configuration.php index 31a48f883..b876ea2be 100644 --- a/resources/admin/classes/common/Configuration.php +++ b/resources/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } } diff --git a/usage/admin/classes/common/Configuration.php b/usage/admin/classes/common/Configuration.php index 16e4460fc..3e6b11c7d 100755 --- a/usage/admin/classes/common/Configuration.php +++ b/usage/admin/classes/common/Configuration.php @@ -32,7 +32,7 @@ public function init(NamedArguments $arguments) { // Save config array content as Configuration properties foreach ($config as $section => $entries) { - $this->$section = Utility::objectFromArray($entries); + $this->$section = (new Utility())->objectFromArray($entries); } }