Skip to content

Commit

Permalink
PHP 8.2 | Fix "Use of "parent" in callables is deprecated" notice (#105)
Browse files Browse the repository at this point in the history
* PHP 8.2 | Fix "Use of "parent" in callables is deprecated" notice

* Update HasSettings.php
  • Loading branch information
jeffreyvanhees authored Jan 21, 2023
1 parent 8b3b1b4 commit 118ff5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __call($name, $args)
return $this->settings();
}

return is_callable(['parent', '__call']) ? parent::__call($name, $args) : null;
return call_user_func(get_parent_class($this) . '::__call', $name, $args);
}

abstract public function getSettingsValue(): array;
Expand Down

0 comments on commit 118ff5c

Please sign in to comment.