Skip to content

Commit

Permalink
Issue #258 - CommandResult inheritance (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetchuck authored Jan 4, 2022
1 parent f105aef commit ff9ba1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CommandResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ protected function __construct($data = null, $exitCode = 0)

public static function exitCode($exitCode)
{
return new self(null, $exitCode);
return new static(null, $exitCode);
}

public static function data($data)
{
return new self($data);
return new static($data);
}

public static function dataWithExitCode($data, $exitCode)
{
return new self($data, $exitCode);
return new static($data, $exitCode);
}

public function getExitCode()
Expand Down

0 comments on commit ff9ba1e

Please sign in to comment.