From ff9ba1e72858e2d206f832266aae03fcc852b609 Mon Sep 17 00:00:00 2001 From: Andor Date: Tue, 4 Jan 2022 17:03:52 +0100 Subject: [PATCH] Issue #258 - CommandResult inheritance (#259) --- src/CommandResult.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CommandResult.php b/src/CommandResult.php index 6b1a3f8..8cd6a2f 100644 --- a/src/CommandResult.php +++ b/src/CommandResult.php @@ -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()