From aa956a071cf0535cf605a73a253716a295585852 Mon Sep 17 00:00:00 2001 From: Inhere Date: Sat, 29 Jan 2022 16:38:11 +0800 Subject: [PATCH] fix: call method on null prop --- app/Console/Controller/SelfController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Console/Controller/SelfController.php b/app/Console/Controller/SelfController.php index ef7ee34..e686977 100644 --- a/app/Console/Controller/SelfController.php +++ b/app/Console/Controller/SelfController.php @@ -66,9 +66,9 @@ protected static function commandAliases(): array ]; } - protected function init(): void + protected function beforeRun(): void { - parent::init(); + parent::beforeRun(); $this->baseDir = BASE_PATH; $this->repoDir = $this->input->getPwd(); @@ -112,13 +112,14 @@ public function infoCommand(Input $input, Output $output): void * @arguments * path The sub-path in the kite. if empty, return kite path. * + * @param FlagsParser $fs + * @param Output $output + * * @example * {binWithCmd} * {binWithCmd} tmp/logs/some.log * {binWithCmd} tmp/logs/some.log --inline * - * @param Input $input - * @param Output $output */ public function pathCommand(FlagsParser $fs, Output $output): void {