Skip to content

Commit

Permalink
Merge pull request #626 from theshado40/patch-1
Browse files Browse the repository at this point in the history
Update ExtendableTrait.php get_parent_class function to remove deprec…
  • Loading branch information
daftspunk authored Apr 11, 2024
2 parents 275fd24 + b2a6fe6 commit 069775f
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 069775f

Please sign in to comment.