Skip to content

Commit

Permalink
SSH2: fix PHP 8.4 deprecatin w.r.t. declare(strict_types=1)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 29, 2024
1 parent faced4d commit 46c3756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3191,7 +3191,7 @@ protected function reset_connection(): void
*/
private function get_stream_timeout()
{
$sec = ini_get('default_socket_timeout');
$sec = (int) ini_get('default_socket_timeout');
$usec = 0;
if ($this->curTimeout > 0) {
$sec = (int) floor($this->curTimeout);
Expand Down

0 comments on commit 46c3756

Please sign in to comment.