Skip to content

Commit

Permalink
Remove missed call to stream_context_set_option with array
Browse files Browse the repository at this point in the history
Fixes #110.
  • Loading branch information
trowski committed Feb 28, 2024
1 parent 40c80bd commit 4223324
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Internal/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ function setupTls($socket, array $options, ?Cancellation $cancellation): void
\stream_context_set_option($socket, $options);
}

\stream_context_set_option($socket, $options);

$errorHandler = static function (int $errno, string $errstr) use ($socket): never {
if (\feof($socket)) {
$errstr = 'Connection reset by peer';
Expand Down

0 comments on commit 4223324

Please sign in to comment.