Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Feb 20, 2025
1 parent 2e22d06 commit 5b07826
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Frame/FrameHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,8 @@ private function write(string $data): int
/** @return array<int> */
private function unpack(string $format, string $string): array
{
/** @var array<int> $result */
$result = unpack($format, $string);
if ($result === false) {
throw new RuntimeException('Could not parse message header');
}
return $result;
}
}

0 comments on commit 5b07826

Please sign in to comment.