Skip to content

Commit

Permalink
Revert "Update ExtendableTrait.php get_parent_class function to remov…
Browse files Browse the repository at this point in the history
…e deprecation error php 8.3"

This reverts commit b2a6fe6.
  • Loading branch information
daftspunk committed Apr 11, 2024
1 parent 069775f commit 10d8d89
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($this);
$parent = get_parent_class();
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($this);
$parent = get_parent_class();
if ($parent !== false && method_exists($parent, '__call')) {
return parent::__call($name, $params);
}
Expand Down

0 comments on commit 10d8d89

Please sign in to comment.