Skip to content

Commit

Permalink
fix specific exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
yerstd committed Oct 12, 2021
1 parent 5974bef commit 3f9a062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phpnsq/Utility/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Stream
{
public static function pfopen($host, $port)
{
$socket = pfsockopen($host, $port, $errno, $errstr);
$socket = fsockopen($host, $port, $errno, $errstr);
if (false === $socket) {
throw new Exception("Could not connect to {$host}:{$port} [{$errno}]:[{$errstr}]");
}
Expand Down

0 comments on commit 3f9a062

Please sign in to comment.