[Process] re-added the possibility to set the Process timeout to null (to disable it) (closes #4843)
This commit is contained in:
parent
5da1bc6a4f
commit
50109ebcc2
@ -585,8 +585,19 @@ class Process
|
||||
return $this->timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the process timeout.
|
||||
*
|
||||
* To disable the timeout, set this value to null.
|
||||
*
|
||||
* @param integer|null
|
||||
*/
|
||||
public function setTimeout($timeout)
|
||||
{
|
||||
if (null === $timeout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$timeout = (integer) $timeout;
|
||||
|
||||
if ($timeout < 0) {
|
||||
|
@ -81,8 +81,19 @@ class ProcessBuilder
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the process timeout.
|
||||
*
|
||||
* To disable the timeout, set this value to null.
|
||||
*
|
||||
* @param integer|null
|
||||
*/
|
||||
public function setTimeout($timeout)
|
||||
{
|
||||
if (null === $timeout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$timeout = (integer) $timeout;
|
||||
|
||||
if ($timeout < 0) {
|
||||
|
Reference in New Issue
Block a user