From 9735cfc9257f0c9ca285e2c6cd08551ae73de3de Mon Sep 17 00:00:00 2001 From: Sinri Edogawa Date: Fri, 31 Dec 2021 15:04:26 +0800 Subject: [PATCH] refine --- src/cli/ArkCliProgram.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cli/ArkCliProgram.php b/src/cli/ArkCliProgram.php index a56f6c6..6f248ec 100644 --- a/src/cli/ArkCliProgram.php +++ b/src/cli/ArkCliProgram.php @@ -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); @@ -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)) {