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 1
1
#!/usr/bin/env php
2
2
<?php
3
3
4
+ use Bamarni \Symfony \Console \Autocomplete \DumpCommand ;
4
5
use Symfony \Component \Console \Application as BaseApplication ;
5
6
use Symfony \Component \Console \Command \Command ;
7
+ use Symfony \Component \Console \Input \InputDefinition ;
6
8
use Symfony \Component \Console \Input \InputInterface ;
7
- use Bamarni \Symfony \Console \Autocomplete \DumpCommand ;
8
9
9
10
if (file_exists ($ autoload = __DIR__ .'/../../../autoload.php ' )) {
10
11
require_once $ autoload ;
@@ -23,20 +24,20 @@ class Application extends BaseApplication
23
24
parent ::__construct ();
24
25
}
25
26
26
- protected function getCommandName (InputInterface $ input )
27
+ protected function getCommandName (InputInterface $ input ): ? string
27
28
{
28
29
return $ this ->command ->getName ();
29
30
}
30
31
31
- protected function getDefaultCommands ()
32
+ protected function getDefaultCommands (): array
32
33
{
33
34
$ defaultCommands = parent ::getDefaultCommands ();
34
35
$ defaultCommands [] = $ this ->command ;
35
36
36
37
return $ defaultCommands ;
37
38
}
38
39
39
- public function getDefinition ()
40
+ public function getDefinition (): InputDefinition
40
41
{
41
42
$ inputDefinition = parent ::getDefinition ();
42
43
$ inputDefinition ->setArguments ();
Original file line number Diff line number Diff line change 3
3
"description" : " Shell completion for Symfony Console based scripts" ,
4
4
"license" : " MIT" ,
5
5
"require" : {
6
- "php" : " ^7.0 |^8.0" ,
6
+ "php" : " ^7.1 |^8.0" ,
7
7
"ext-simplexml" : " *" ,
8
8
"symfony/console" : " ^2.5|^3|^4|^5|^6" ,
9
9
"symfony/process" : " ^2.5|^3|^4|^5|^6"
You can’t perform that action at this time.
0 commit comments