Skip to content

Commit 91c30fb

Browse files
committed
fixed phpstan issues
1 parent 7014b1e commit 91c30fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Api/AbstractApi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ protected function hydrateResponse(ResponseInterface $response, string $class):
168168
if (!str_starts_with($contentType, 'application/json')) {
169169
throw new HydrationException('The ModelHydrator cannot hydrate response with Content-Type: ' . $contentType);
170170
}
171-
if (!is_subclass_of($class, Hydratable::class)) {
172-
throw new HydrationException('This class can not be hydrated: ' . $class);
173-
}
174171

175172
$data = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
176173
Assert::isArray($data);

0 commit comments

Comments
 (0)