diff --git a/src/Extension/ExtendableTrait.php b/src/Extension/ExtendableTrait.php index 45f292765..76cf7e085 100644 --- a/src/Extension/ExtendableTrait.php +++ b/src/Extension/ExtendableTrait.php @@ -435,7 +435,7 @@ public function extendableGet($name) } } - $parent = get_parent_class(); + $parent = get_parent_class(self::class); if ($parent !== false && method_exists($parent, '__get')) { return parent::__get($name); } @@ -468,7 +468,7 @@ public function extendableSet($name, $value) } // This targets trait usage in particular - $parent = get_parent_class(); + $parent = get_parent_class(self::class); if ($parent !== false && method_exists($parent, '__set')) { parent::__set($name, $value); $found = true; @@ -504,7 +504,7 @@ public function extendableCall($name, $params = null) return call_user_func_array($callable, $params); } - $parent = get_parent_class(); + $parent = get_parent_class(self::class); if ($parent !== false && method_exists($parent, '__call')) { return parent::__call($name, $params); }