From 935b8a8c0fc65c6a8bf25566745dbfac32c241e6 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 12 Jul 2020 21:30:19 +0800 Subject: [PATCH] Fix PHPDocs for CLI --- system/CLI/BaseCommand.php | 7 ++-- system/CLI/CommandRunner.php | 4 ++- system/CLI/Commands.php | 48 ++++++++++++++++++++++++-- system/CLI/Exceptions/CLIException.php | 47 ++++++++++++++++++++++++- 4 files changed, 99 insertions(+), 7 deletions(-) diff --git a/system/CLI/BaseCommand.php b/system/CLI/BaseCommand.php index 4fcc39d45591..024daf18ddb9 100644 --- a/system/CLI/BaseCommand.php +++ b/system/CLI/BaseCommand.php @@ -1,4 +1,5 @@ commands = service('commands'); diff --git a/system/CLI/Commands.php b/system/CLI/Commands.php index ff9db290a552..cb6d8fd4ed1a 100644 --- a/system/CLI/Commands.php +++ b/system/CLI/Commands.php @@ -1,4 +1,43 @@ -logger = $logger === null ? service('logger') : $logger; + $this->logger = $logger ?? service('logger'); } /** diff --git a/system/CLI/Exceptions/CLIException.php b/system/CLI/Exceptions/CLIException.php index 6e2477faa7b6..474064ef888a 100644 --- a/system/CLI/Exceptions/CLIException.php +++ b/system/CLI/Exceptions/CLIException.php @@ -1,8 +1,53 @@ -