From 7a31baa5867fd6941b888289965f10c4bc8fc8f1 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 24 Apr 2024 11:23:43 -0400 Subject: [PATCH] - Quickfix on missing debugResponse method of Apihandler --- src/ApiRepository.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ApiRepository.php b/src/ApiRepository.php index 09abb17..a89d923 100644 --- a/src/ApiRepository.php +++ b/src/ApiRepository.php @@ -209,7 +209,9 @@ class ApiRepository extends \Ulmus\Repository protected function callApiDebugCallback(CurlTransport $transport) : void { - $this->adapter->apiHandler->debugResponse($transport, $this); + if (method_exists($this->adapter->apiHandler, 'debugResponse')) { + $this->adapter->apiHandler->debugResponse($transport, $this); + } } public function collectionFromQuery(? string $entityClass = null) : EntityCollection