From 9d68a3cf4817a3d76e7fcd8f59bc07e12dd5d6a7 Mon Sep 17 00:00:00 2001 From: Ferdinand Aneke Date: Fri, 1 Aug 2025 20:47:15 +0100 Subject: [PATCH] Fix deprecated get_class() usage in Router for PHP 8+ compatibility --- src/Paystack/Helpers/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paystack/Helpers/Router.php b/src/Paystack/Helpers/Router.php index 7fd2415..df9da22 100644 --- a/src/Paystack/Helpers/Router.php +++ b/src/Paystack/Helpers/Router.php @@ -85,7 +85,7 @@ public function __construct($route, $paystackObj) $caller = new Caller($paystackObj); return $caller->callEndpoint($interface, $params, $sentargs); }; - $this->methods[$mtd] = \Closure::bind($mtdFunc, $this, get_class()); + $this->methods[$mtd] = \Closure::bind($mtdFunc, $this, get_class($this)); } }