Page MenuHomeIn-Portal Phabricator

D140.id359.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:05 AM

D140.id359.diff

Index: branches/5.3.x/core/kernel/utility/ProcessBuilder.php
===================================================================
--- branches/5.3.x/core/kernel/utility/ProcessBuilder.php
+++ branches/5.3.x/core/kernel/utility/ProcessBuilder.php
@@ -74,7 +74,7 @@
*
* @var array
*/
- protected $options = array();
+ protected $options;
/**
* Creates class instance.
@@ -110,18 +110,20 @@
/**
* Resets state to allow building another process.
*
- * @return void
+ * @return static
*/
public function reset()
{
- $this->command = '';
- $this->executable = '';
+ $this->command = null;
+ $this->executable = null;
$this->arguments = array();
$this->workingDirectory = null;
$this->env = array();
$this->input = null;
$this->timeout = 60;
$this->options = array();
+
+ return $this;
}
/**

Event Timeline