From 43882ef82fda7bf43671da1c42e9d2058d93dd8f Mon Sep 17 00:00:00 2001 From: vendidero Date: Fri, 23 Aug 2024 09:43:33 +0200 Subject: [PATCH] PHP 8.3 compatibility: Replace get_class() with __CLASS__ --- src/baltpeter/Internetmarke/ApiResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/baltpeter/Internetmarke/ApiResult.php b/src/baltpeter/Internetmarke/ApiResult.php index fe5a784..612af3f 100644 --- a/src/baltpeter/Internetmarke/ApiResult.php +++ b/src/baltpeter/Internetmarke/ApiResult.php @@ -16,7 +16,7 @@ public static function fromStdObject($std_object) { if(is_object($value)) { // taken from https://github.com/doctrine/inflector by the Doctrine Project, Inflector::classify() $value_class_name = __NAMESPACE__ . '\\' . str_replace([' ', '_', '-'], '', ucwords($property, ' _-')); - if(class_exists($value_class_name) && is_subclass_of($value_class_name, get_class())) { + if(class_exists($value_class_name) && is_subclass_of($value_class_name, __CLASS__)) { $value = $value_class_name::fromStdObject($value); } }