Skip to content

Commit

Permalink
Remove the usage of constants as they are unavailable in older versio…
Browse files Browse the repository at this point in the history
…ns of Symfony Console.
  • Loading branch information
paulpartington-cti committed Jul 28, 2023
1 parent b6d4fb6 commit b6b958c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Console/Command/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
} catch (ConfiguratorAdapterException $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');
return Command::FAILURE;
return 1;
}
return Command::SUCCESS;
return 0;
}
}
4 changes: 2 additions & 2 deletions Console/Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
} catch (\Exception $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');
return Command::FAILURE;
return 1;
}
return Command::SUCCESS;
return 0;
}
}

0 comments on commit b6b958c

Please sign in to comment.