Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804054
D140.id359.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 9:05 AM
Size
846 B
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:05 AM (4 h, 40 m)
Engine
blob
Format
Raw Data
Handle
576768
Attached To
D140: INP-1489 - Initialize properties of ProcessBuilder class with null
D140.id359.diff
View Options
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
Log In to Comment