Skip to content

Commit

Permalink
fix: call method on null prop
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 29, 2022
1 parent dd4b748 commit aa956a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/Console/Controller/SelfController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit aa956a0

Please sign in to comment.