Skip to content

Commit e03f56a

Browse files
committed
remove unnecessary type casting
1 parent 18d6eaf commit e03f56a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StreamingServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function handleRequest(ConnectionInterface $conn, ServerRequestInterface
214214
$string = $request->getHeaderLine('Content-Length');
215215

216216
$contentLength = (int)$string;
217-
if ((string)$contentLength !== (string)$string) {
217+
if ((string)$contentLength !== $string) {
218218
// Content-Length value is not an integer or not a single integer
219219
$this->emit('error', array(new \InvalidArgumentException('The value of `Content-Length` is not valid')));
220220
return $this->writeError($conn, 400, $request);

0 commit comments

Comments
 (0)