Skip to content

Commit

Permalink
Update ExtendableTrait.php get_parent_class function to remove deprec…
Browse files Browse the repository at this point in the history
…ation error php 8.3

Php 8.3 introduced an deprecation error on the get_parent_class function.
  • Loading branch information
theshado40 authored Apr 11, 2024
1 parent 275fd24 commit b2a6fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extension/ExtendableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b2a6fe6

Please sign in to comment.