diff --git a/Process.php b/Process.php index 3e8ae3ce..8f78fd57 100644 --- a/Process.php +++ b/Process.php @@ -776,7 +776,7 @@ public function setTimeout($timeout) */ public function setTty($tty) { - $this->tty = (Boolean) $tty; + $this->tty = (bool) $tty; return $this; } @@ -928,7 +928,7 @@ public function getEnhanceWindowsCompatibility() */ public function setEnhanceWindowsCompatibility($enhance) { - $this->enhanceWindowsCompatibility = (Boolean) $enhance; + $this->enhanceWindowsCompatibility = (bool) $enhance; return $this; } @@ -956,7 +956,7 @@ public function getEnhanceSigchildCompatibility() */ public function setEnhanceSigchildCompatibility($enhance) { - $this->enhanceSigchildCompatibility = (Boolean) $enhance; + $this->enhanceSigchildCompatibility = (bool) $enhance; return $this; } diff --git a/ProcessPipes.php b/ProcessPipes.php index e6aabc5f..12cc47a8 100644 --- a/ProcessPipes.php +++ b/ProcessPipes.php @@ -35,8 +35,8 @@ class ProcessPipes public function __construct($useFiles, $ttyMode) { - $this->useFiles = (Boolean) $useFiles; - $this->ttyMode = (Boolean) $ttyMode; + $this->useFiles = (bool) $useFiles; + $this->ttyMode = (bool) $ttyMode; // Fix for PHP bug #51800: reading from STDOUT pipe hangs forever on Windows if the output is too big. // Workaround for this problem is to use temporary files instead of pipes on Windows platform. @@ -180,10 +180,10 @@ public function readAndCloseHandles($blocking) public function hasOpenHandles() { if (!$this->useFiles) { - return (Boolean) $this->pipes; + return (bool) $this->pipes; } - return (Boolean) $this->pipes && (Boolean) $this->fileHandles; + return (bool) $this->pipes && (bool) $this->fileHandles; } /**