Skip to content

Commit

Permalink
fixed short array CS in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 16, 2019
1 parent 4b32d21 commit 009f8dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function setPhpBinary($php)
/**
* {@inheritdoc}
*/
public function start(callable $callback = null/*, array $env = array()*/)
public function start(callable $callback = null/*, array $env = []*/)
{
if (null === $this->getCommandLine()) {
throw new RuntimeException('Unable to find the PHP executable.');
Expand Down
8 changes: 4 additions & 4 deletions Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function __clone()
*
* @final since version 3.3
*/
public function run($callback = null/*, array $env = array()*/)
public function run($callback = null/*, array $env = []*/)
{
$env = 1 < \func_num_args() ? func_get_arg(1) : null;
$this->start($callback, $env);
Expand All @@ -228,7 +228,7 @@ public function run($callback = null/*, array $env = array()*/)
*
* @final since version 3.3
*/
public function mustRun(callable $callback = null/*, array $env = array()*/)
public function mustRun(callable $callback = null/*, array $env = []*/)
{
if (!$this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
throw new RuntimeException('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.');
Expand Down Expand Up @@ -262,7 +262,7 @@ public function mustRun(callable $callback = null/*, array $env = array()*/)
* @throws RuntimeException When process is already running
* @throws LogicException In case a callback is provided and output has been disabled
*/
public function start(callable $callback = null/*, array $env = array()*/)
public function start(callable $callback = null/*, array $env = [*/)
{
if ($this->isRunning()) {
throw new RuntimeException('Process is already running');
Expand Down Expand Up @@ -378,7 +378,7 @@ public function start(callable $callback = null/*, array $env = array()*/)
*
* @final since version 3.3
*/
public function restart(callable $callback = null/*, array $env = array()*/)
public function restart(callable $callback = null/*, array $env = []*/)
{
if ($this->isRunning()) {
throw new RuntimeException('Process is already running');
Expand Down
4 changes: 2 additions & 2 deletions Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1164,8 +1164,8 @@ public function responsesCodeProvider()
{
return [
//expected output / getter / code to execute
//array(1,'getExitCode','exit(1);'),
//array(true,'isSuccessful','exit();'),
//[1,'getExitCode','exit(1);'],
//[true,'isSuccessful','exit();'],
['output', 'getOutput', 'echo \'output\';'],
];
}
Expand Down

0 comments on commit 009f8dd

Please sign in to comment.