Skip to content

Commit

Permalink
execute() needs to return int
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanzante committed Aug 21, 2023
1 parent f41e877 commit 2cce407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Composer/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public function createProjectAssistant() {
$this->createDirectories();
$this->createSubTheme($theme_name);
$this->assistantSuccess($project_name);
return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/SetupAssistantCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$handler = new Handler($this->getComposer(), $this->getIO());
$handler->createProjectAssistant();
return $handler->createProjectAssistant();
}

}

0 comments on commit 2cce407

Please sign in to comment.