Skip to content

Commit

Permalink
Force int for port due to warning in PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmgeek committed Apr 28, 2022
1 parent bc3386f commit adc43a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pheanstalk.php
Original file line number Diff line number Diff line change
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 adc43a1

Please sign in to comment.