From b2a6fe69c672a45ee51926b44f647635cb63f65d Mon Sep 17 00:00:00 2001 From: Ryan Sandnes Date: Wed, 10 Apr 2024 17:57:44 -0700 Subject: [PATCH] Update ExtendableTrait.php get_parent_class function to remove deprecation error php 8.3 Php 8.3 introduced an deprecation error on the get_parent_class function. --- src/Extension/ExtendableTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/ExtendableTrait.php b/src/Extension/ExtendableTrait.php index 45f292765..935e302e2 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($this); if ($parent !== false && method_exists($parent, '__get')) { return parent::__get($name); } @@ -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($this); if ($parent !== false && method_exists($parent, '__call')) { return parent::__call($name, $params); }