File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ $commandName = $command->getName();
2828
2929// Run application single command
3030$ application = new Application ('conventional-changelog ' , '1.17.3 ' );
31- $ application ->add ($ command );
31+ // Symfony Console 8.0+ removed add() in favor of addCommand()
32+ if (method_exists ($ application , 'addCommand ' )) {
33+ $ application ->addCommand ($ command );
34+ } else {
35+ $ application ->add ($ command );
36+ }
3237$ application ->setDefaultCommand ($ commandName , true );
3338$ application ->run ();
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function __construct(array $settings = [])
5757 *
5858 * @return void
5959 */
60- protected function configure ()
60+ protected function configure (): void
6161 {
6262 $ this
6363 ->setDescription ("Generate changelogs and release notes from a project's commit messages " .
You can’t perform that action at this time.
0 commit comments