Commit 30eb18c5 authored by catch's avatar catch
Browse files

Issue #3233456 by daffie, longwave: [Symfony 6] Add "int" type hint to methods...

Issue #3233456 by daffie, longwave: [Symfony 6] Add "int" type hint to methods overriding Symfony\Component\Console\Command\Command::execute()
parent 954f80a5
Loading
Loading
Loading
Loading
+1 −1
Changes for composer/Plugin/Scaffold/ComposerScaffoldCommand.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ protected function configure() {
  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
  protected function execute(InputInterface $input, OutputInterface $output): int {
    $handler = new Handler($this->getComposer(), $this->getIO());
    $handler->scaffold();
    return 0;
+1 −1
Changes for core/lib/Drupal/Core/Command/DbDumpCommand.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ protected function configure() {
  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
  protected function execute(InputInterface $input, OutputInterface $output): int {
    $connection = $this->getDatabaseConnection($input);

    // If not explicitly set, disable ANSI which will break generated php.
+1 −1
Changes for core/lib/Drupal/Core/Command/DbImportCommand.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ protected function configure() {
  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
  protected function execute(InputInterface $input, OutputInterface $output): int {
    $script = $input->getArgument('script');
    if (!is_file($script)) {
      $output->writeln('File must exist.');
+1 −1
Changes for core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ protected function configure() {
  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
  protected function execute(InputInterface $input, OutputInterface $output): int {
    $class_name = ltrim($input->getArgument('class_name'), '\\');
    $namespace_root = $input->getArgument('namespace_root_path');

+1 −1
Changes for core/lib/Drupal/Core/Command/GenerateTheme.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ protected function configure() {
  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
  protected function execute(InputInterface $input, OutputInterface $output): int {
    $io = new SymfonyStyle($input, $output);

    // Change the directory to the Drupal root.
Loading