Skip to content

Commit 8cdcc26

Browse files
committed
Fixed issues found by Scrutinizer.
1 parent 7e20009 commit 8cdcc26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Exception/ProgramExecutionException.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class ProgramExecutionException extends \RuntimeException
3434
/**
3535
* Object constructor.
3636
*
37-
* @param string $command The executed command.
38-
* @param int $status The exit status of the executed command.
39-
* @param string[] $output The output of the executed command.
37+
* @param string $command The executed command.
38+
* @param int $status The exit status of the executed command.
39+
* @param null|string[] $output The output of the executed command.
4040
*
4141
* @api
4242
*/
@@ -46,7 +46,7 @@ public function __construct($command, $status, $output)
4646

4747
$this->command = $command;
4848
$this->status = $status;
49-
$this->output = $output;
49+
$this->output = ($output==null) ? [] : $output;
5050
}
5151

5252
//--------------------------------------------------------------------------------------------------------------------
@@ -66,7 +66,7 @@ public function getCommand()
6666
/**
6767
* Returns the output of the executed command.
6868
*
69-
* @return \string[]
69+
* @return string[]
7070
*
7171
* @api
7272
*/

0 commit comments

Comments
 (0)