Skip to content

Commit

Permalink
Merge pull request #187 from tsmgeek/patch-2
Browse files Browse the repository at this point in the history
Force int for port due to warning in PHP8
  • Loading branch information
pentium10 committed Aug 1, 2022
2 parents bc3386f + adc43a1 commit a275c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pheanstalk.php
Expand Up @@ -26,7 +26,7 @@ class Pheanstalk
*/
public function __construct($host, $port = self::DEFAULT_PORT, $connectTimeout = null)
{
$this->setConnection(new Pheanstalk_Connection($host, $port, $connectTimeout));
$this->setConnection(new Pheanstalk_Connection($host, intval($port), $connectTimeout));
}

/**
Expand Down

0 comments on commit a275c96

Please sign in to comment.