File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Responses/FileCabinets Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ $organizations = $connector->send(new GetOrganizationsRequest())->dto();
110110/**
111111 * Return all file cabinets.
112112 */
113- $fileCabinets = $connector->send(new GetCabinetsRequest ())->dto();
113+ $fileCabinets = $connector->send(new GetFileCabinetsRequest ())->dto();
114114
115115/**
116116 * Return all fields of a file cabinet.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public static function fromResponse(Response $response): Collection|Enumerable
1717
1818 EnsureValidResponse::from ($ response );
1919
20- $ cabinets = $ response ->throw ()->body ( );
20+ $ cabinets = $ response ->throw ()->json ( ' FileCabinet ' );
2121
2222 return collect ($ cabinets )->map (fn (array $ cabinet ) => FileCabinet::fromJson ($ cabinet ));
2323 }
You can’t perform that action at this time.
0 commit comments