Skip to content

Commit

Permalink
update: stdlib class name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 5, 2021
1 parent 8c5eb38 commit 257dd87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Handler/AbstractHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use Toolkit\PFlag\FlagsParser;
use Toolkit\PFlag\SFlags;
use Toolkit\Stdlib\Helper\PhpHelper;
use Toolkit\Stdlib\Obj\ConfigObject;
use Toolkit\Stdlib\Obj\DataObject;
use function cli_set_process_title;
use function error_get_last;
use function function_exists;
Expand Down Expand Up @@ -91,7 +91,7 @@ abstract class AbstractHandler implements CommandHandlerInterface
protected $processTitle = '';

/**
* @var ConfigObject
* @var DataObject
*/
protected $params;

Expand Down Expand Up @@ -461,9 +461,9 @@ public function isAloneCmd(): bool
}

/**
* @return ConfigObject
* @return DataObject
*/
public function getParams(): ConfigObject
public function getParams(): DataObject
{
if (!$this->params) {
$this->initParams([]);
Expand All @@ -475,11 +475,11 @@ public function getParams(): ConfigObject
/**
* @param array $params
*
* @return ConfigObject
* @return DataObject
*/
public function initParams(array $params): ConfigObject
public function initParams(array $params): DataObject
{
$this->params = ConfigObject::new($params);
$this->params = DataObject::new($params);
return $this->params;
}

Expand Down

0 comments on commit 257dd87

Please sign in to comment.