Skip to content

Commit

Permalink
Merge pull request #327 from caltechlibrary/326-deprecated-static-method
Browse files Browse the repository at this point in the history
Issue #326: Fix statically called non-static method.
  • Loading branch information
veggiematts authored Jan 29, 2018
2 parents 1c1031d + 7df41d6 commit aad5c9a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auth/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion licensing/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion management/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion organizations/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion usage/admin/classes/common/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit aad5c9a

Please sign in to comment.