Skip to content

Commit

Permalink
Merge pull request #207 from kimpauevg/master
Browse files Browse the repository at this point in the history
Fixed Issue #206 Php syntax error in php ^7.3
  • Loading branch information
isublimity authored Jan 18, 2024
2 parents 3e4de6e + 292d94d commit 975b6d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,10 @@ public function setHost($host): void

/**
* max_execution_time , in int value (seconds)
*
* @return Settings
*/
public function setTimeout(int|float $timeout):Settings
public function setTimeout(int $timeout): Settings
{
return $this->settings()->max_execution_time(intval($timeout));
return $this->settings()->max_execution_time($timeout);
}

/**
Expand Down

0 comments on commit 975b6d6

Please sign in to comment.