Skip to content

Commit

Permalink
Fixes double assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
hollodotme committed Apr 15, 2017
1 parent a36ae19 commit 2911a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ public function fetchResponse( ?int $timeoutMs = null ) : ProvidesResponseData

private function readPacket() : ?array
{
if ( $packet = fread( $this->resource, self::HEADER_LEN ) )
if ( $header = fread( $this->resource, self::HEADER_LEN ) )
{
$packet = $this->packetEncoder->decodeHeader( $packet );
$packet = $this->packetEncoder->decodeHeader( $header );
$packet['content'] = '';

if ( $packet['contentLength'] )
Expand Down

0 comments on commit 2911a7e

Please sign in to comment.