SSH2: fix PHP 8.4 deprecatin w.r.t. declare(strict_types=1)

This commit is contained in:
terrafrost 2024-11-29 00:16:44 -06:00
parent faced4d097
commit 46c3756165

View File

@ -3191,7 +3191,7 @@ class SSH2
*/ */
private function get_stream_timeout() private function get_stream_timeout()
{ {
$sec = ini_get('default_socket_timeout'); $sec = (int) ini_get('default_socket_timeout');
$usec = 0; $usec = 0;
if ($this->curTimeout > 0) { if ($this->curTimeout > 0) {
$sec = (int) floor($this->curTimeout); $sec = (int) floor($this->curTimeout);