We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3212c commit 5f27884Copy full SHA for 5f27884
src/Mike42/Escpos/PrintConnectors/NetworkPrintConnector.php
@@ -31,7 +31,7 @@ public function __construct(string $ip, int $port = 9100, int $timeout = -1)
31
{
32
// Note: Once the minimum PHP version is PHP 7.0 or higher, we can type $timeout as '?int' to make it optional
33
// instead of using -1.
34
- if($timeout == -1) {
+ if ($timeout == -1) {
35
$this -> fp = @fsockopen($ip, $port, $errno, $errstr);
36
} else {
37
$this -> fp = @fsockopen($ip, $port, $errno, $errstr, (float)$timeout);
0 commit comments