diff --git a/src/Resources/BaseResource.php b/src/Resources/BaseResource.php index 8a9c01cb..6108cebc 100644 --- a/src/Resources/BaseResource.php +++ b/src/Resources/BaseResource.php @@ -36,6 +36,8 @@ public function getResponse(): ?Response public function getPendingRequest(): ?PendingRequest { - return $this->response?->getPendingRequest(); + return $this->response + ? $this->response->getPendingRequest() + : null; } }