From 28e2ffd52ee83515a80bd786ac0c4e55a399cf0a Mon Sep 17 00:00:00 2001 From: Sebastian Fix Date: Thu, 5 Oct 2023 13:51:11 +0200 Subject: [PATCH] WIP --- src/DocuWare.php | 2 +- src/Responses/FileCabinets/GetFileCabinetsResponse.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DocuWare.php b/src/DocuWare.php index ed23a30..8dcf661 100644 --- a/src/DocuWare.php +++ b/src/DocuWare.php @@ -42,7 +42,7 @@ public function cookie(string $url, string $username, string $password, $remembe EnsureValidResponse::from($response); - return Cookie::make($cookieJar, $response); + return Cookie::make($cookieJar); } diff --git a/src/Responses/FileCabinets/GetFileCabinetsResponse.php b/src/Responses/FileCabinets/GetFileCabinetsResponse.php index 478b156..af9938d 100644 --- a/src/Responses/FileCabinets/GetFileCabinetsResponse.php +++ b/src/Responses/FileCabinets/GetFileCabinetsResponse.php @@ -17,7 +17,7 @@ public static function fromResponse(Response $response): Collection|Enumerable EnsureValidResponse::from($response); - $cabinets = $response->throw()->body('FileCabinet'); + $cabinets = $response->throw()->body(); return collect($cabinets)->map(fn (array $cabinet) => FileCabinet::fromJson($cabinet)); }