Skip to content

Commit

Permalink
Minor changed for PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelLaffineur committed May 22, 2023
1 parent 55fcd65 commit 0a0fbc9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Skeleton/Object/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,10 +406,18 @@ private static function trait_cache_enabled() {
return false;
}

if (get_called_class() === false) {
return false;
}

if (method_exists(get_called_class(), 'cache_get')) {
return true;
}

if (get_parent_class(get_called_class()) === false) {
return false;
}

if (method_exists(get_parent_class(get_called_class()), 'cache_get')) {
return true;
}
Expand Down

0 comments on commit 0a0fbc9

Please sign in to comment.