Skip to content

Commit b2ef76d

Browse files
committed
refactor: remove unuseful cast
1 parent 79f19bc commit b2ef76d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response/HttpStatusValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function validate(): void
5555
}
5656
case 200:
5757
{
58-
if ((string) $this->response->getBody() == self::ERROR_NOT_FOUND_BODY) {
58+
if ($this->response->getBody() == self::ERROR_NOT_FOUND_BODY) {
5959
throw new FunctionNotFoundException();
6060
}
6161
break;
@@ -66,7 +66,7 @@ public function validate(): void
6666
sprintf(
6767
self::SOMETHING_WENT_WRONG,
6868
$statusCode,
69-
(string) $this->response->getBody()
69+
$this->response->getBody()
7070
)
7171
);
7272
}

0 commit comments

Comments
 (0)