forked from LiveCarta/PayPal-PHP-SDK
fix deprecated in php8.2
This commit is contained in:
@@ -150,6 +150,6 @@ class ReflectionUtil
|
|||||||
{
|
{
|
||||||
return method_exists($class, "get" . ucfirst($propertyName)) ?
|
return method_exists($class, "get" . ucfirst($propertyName)) ?
|
||||||
"get" . ucfirst($propertyName) :
|
"get" . ucfirst($propertyName) :
|
||||||
"get" . preg_replace_callback("/([_\-\s]?([a-z0-9]+))/", "self::replace_callback", $propertyName);
|
"get" . preg_replace_callback("/([_\-\s]?([a-z0-9]+))/", self::class . "::replace_callback", $propertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user