From b6837f1f4b4a77048d4bcf95e89142e0e07bce0e Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Tue, 14 Mar 2023 10:06:26 -0700 Subject: [PATCH] Restore StripeClient.getService --- lib/StripeClient.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/StripeClient.php b/lib/StripeClient.php index 73522abc7..79de2ca04 100644 --- a/lib/StripeClient.php +++ b/lib/StripeClient.php @@ -73,11 +73,16 @@ class StripeClient extends BaseStripeClient private $coreServiceFactory; public function __get($name) + { + return $this->getService($name); + } + + public function getService($name) { if (null === $this->coreServiceFactory) { $this->coreServiceFactory = new \Stripe\Service\CoreServiceFactory($this); } - return $this->coreServiceFactory->__get($name); + return $this->coreServiceFactory->getService($name); } }