Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
sinri committed Dec 31, 2021
1 parent 66e0dc7 commit 9735cfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli/ArkCliProgram.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ public function __construct()
* It might be overridden to initialize logger for each action or the whole.
* The default is set the logger to write into STDOUT if no writable ArkLogger
* @param string $action
* @param null|array $parameters
* @param array|null $parameters
* @since 3.1.5
* @deprecated since 3.4.2 use initializeProgram
*/
public function initializeLogger(string $action, $parameters = null)
public function initializeLogger(string $action, array $parameters = null)
{
$this->initializeProgram($action, $parameters);
}

/**
* @param string $action
* @param null|array $parameters
* @param array|null $parameters
* @since 3.4.2
*/
public function initializeProgram(string $action, &$parameters = null)
public function initializeProgram(string $action, array &$parameters = null)
{
if ($this->logger === null || $this->logger->isSilent()) {
$this->logger = new ArkLogger(null, $action);
Expand All @@ -57,7 +57,7 @@ public function initializeProgram(string $action, &$parameters = null)
* @param array $parameters
* @throws MethodNotInClassError
*/
public function call(string $methodName, $parameters = [])
public function call(string $methodName, array $parameters = [])
{
$method = 'action' . $methodName;
if (!method_exists($this, $method)) {
Expand Down

0 comments on commit 9735cfc

Please sign in to comment.