File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1616 }
1717 },
1818 "require" : {
19- "symfony/console" : " ^6.1 " ,
20- "symfony/dom-crawler" : " ^6.1 " ,
21- "symfony/css-selector" : " ^6.1 " ,
22- "symfony/yaml" : " ^6.1 "
19+ "symfony/console" : " ^7.0.4 " ,
20+ "symfony/dom-crawler" : " ^7.0.4 " ,
21+ "symfony/css-selector" : " ^7.0.3 " ,
22+ "symfony/yaml" : " ^7.0.3 "
2323 },
2424 "require-dev" : {
25- "friendsofphp/php-cs-fixer" : " ^3.13 "
25+ "friendsofphp/php-cs-fixer" : " ^3.52.1 "
2626 }
2727}
Original file line number Diff line number Diff line change 1919
2020class GenerateCommand extends Command
2121{
22- /**
23- * {@inheritdoc}
24- */
2522 public function configure ()
2623 {
2724 $ this ->setName ('generate ' );
2825 $ this ->setDescription ('Generate a Harvest \'s swagger.yaml definition. ' );
2926 }
3027
31- /**
32- * {@inheritdoc}
33- */
34- public function execute (InputInterface $ input , OutputInterface $ output )
28+ public function execute (InputInterface $ input , OutputInterface $ output ): int
3529 {
3630 $ extractor = new Extractor ();
3731 $ dumper = new Dumper (__DIR__ .'/../../generated/harvest-openapi.yaml ' );
3832 $ warnings = $ dumper ->dump ($ extractor ->extract ());
3933
4034 if (\count ($ warnings ) > 0 ) {
35+ /** @var \Symfony\Component\Console\Helper\FormatterHelper */
4136 $ formatter = $ this ->getHelper ('formatter ' );
4237 $ output ->writeln ($ formatter ->formatBlock ($ warnings , 'bg=yellow;fg=black ' , true ));
4338 }
You can’t perform that action at this time.
0 commit comments