Skip to content

Commit 118ff5c

Browse files
PHP 8.2 | Fix "Use of "parent" in callables is deprecated" notice (#105)
* PHP 8.2 | Fix "Use of "parent" in callables is deprecated" notice * Update HasSettings.php
1 parent 8b3b1b4 commit 118ff5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __call($name, $args)
4040
return $this->settings();
4141
}
4242

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

4646
abstract public function getSettingsValue(): array;

0 commit comments

Comments
 (0)