File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env php
22<?php
33
4+ use Bamarni \Symfony \Console \Autocomplete \DumpCommand ;
45use Symfony \Component \Console \Application as BaseApplication ;
56use Symfony \Component \Console \Command \Command ;
7+ use Symfony \Component \Console \Input \InputDefinition ;
68use Symfony \Component \Console \Input \InputInterface ;
7- use Bamarni \Symfony \Console \Autocomplete \DumpCommand ;
89
910if (file_exists ($ autoload = __DIR__ .'/../../../autoload.php ' )) {
1011 require_once $ autoload ;
@@ -23,20 +24,20 @@ class Application extends BaseApplication
2324 parent ::__construct ();
2425 }
2526
26- protected function getCommandName (InputInterface $ input )
27+ protected function getCommandName (InputInterface $ input ): ? string
2728 {
2829 return $ this ->command ->getName ();
2930 }
3031
31- protected function getDefaultCommands ()
32+ protected function getDefaultCommands (): array
3233 {
3334 $ defaultCommands = parent ::getDefaultCommands ();
3435 $ defaultCommands [] = $ this ->command ;
3536
3637 return $ defaultCommands ;
3738 }
3839
39- public function getDefinition ()
40+ public function getDefinition (): InputDefinition
4041 {
4142 $ inputDefinition = parent ::getDefinition ();
4243 $ inputDefinition ->setArguments ();
Original file line number Diff line number Diff line change 33 "description" : " Shell completion for Symfony Console based scripts" ,
44 "license" : " MIT" ,
55 "require" : {
6- "php" : " ^7.0 |^8.0" ,
6+ "php" : " ^7.1 |^8.0" ,
77 "ext-simplexml" : " *" ,
88 "symfony/console" : " ^2.5|^3|^4|^5|^6" ,
99 "symfony/process" : " ^2.5|^3|^4|^5|^6"
You can’t perform that action at this time.
0 commit comments