From 56dd45e0d17865ea523fc97bf5ff7d05bcec3eaa Mon Sep 17 00:00:00 2001
From: Ilyas Salikhov <salikhoff@gmail.com>
Date: Tue, 18 Jun 2024 20:01:11 +0300
Subject: [PATCH] sf 6 deprecation types

---
 Command/DumpCommand.php               | 2 +-
 Command/SwaggerDumpCommand.php        | 8 +++++---
 DependencyInjection/Configuration.php | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php
index 69378e1..3a4d684 100644
--- a/Command/DumpCommand.php
+++ b/Command/DumpCommand.php
@@ -58,7 +58,7 @@ class DumpCommand extends Command
         ;
     }
 
-    protected function execute(InputInterface $input, OutputInterface $output)
+    protected function execute(InputInterface $input, OutputInterface $output): int
     {
         $format = $input->getOption('format');
         $view = $input->getOption('view');
diff --git a/Command/SwaggerDumpCommand.php b/Command/SwaggerDumpCommand.php
index 067e833..4146df0 100644
--- a/Command/SwaggerDumpCommand.php
+++ b/Command/SwaggerDumpCommand.php
@@ -62,7 +62,7 @@ class SwaggerDumpCommand extends Command
         ;
     }
 
-    protected function execute(InputInterface $input, OutputInterface $output)
+    protected function execute(InputInterface $input, OutputInterface $output): int
     {
         $extractor = $this->container->get('nelmio_api_doc.extractor.api_doc_extractor');
         $this->formatter = $this->container->get('nelmio_api_doc.formatter.swagger_formatter');
@@ -77,7 +77,7 @@ class SwaggerDumpCommand extends Command
             $data = $this->getResourceList($apiDocs, $output);
             $this->dump($data, null, $input, $output);
 
-            return;
+            return 0;
         }
 
         if (false != ($resource = $input->getOption('resource'))) {
@@ -87,7 +87,7 @@ class SwaggerDumpCommand extends Command
             }
             $this->dump($data, $resource, $input, $output);
 
-            return;
+            return 0;
         }
 
         /*
@@ -112,6 +112,8 @@ class SwaggerDumpCommand extends Command
             $data = $this->getApiDeclaration($apiDocs, $resource, $output);
             $this->dump($data, $resource, $input, $output, false);
         }
+
+        return 0;
     }
 
     protected function dump(array $data, $resource, InputInterface $input, OutputInterface $output, $treatAsFile = true)
diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php
index a2cecf6..69fc68c 100644
--- a/DependencyInjection/Configuration.php
+++ b/DependencyInjection/Configuration.php
@@ -16,7 +16,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
 
 class Configuration implements ConfigurationInterface
 {
-    public function getConfigTreeBuilder()
+    public function getConfigTreeBuilder(): TreeBuilder
     {
         $treeBuilder = new TreeBuilder('nelmio_api_doc');