Skip to content

Commit 572d36d

Browse files
committed
fix php versions in ci
1 parent c5278e4 commit 572d36d

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,33 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
14-
symfony: [5.4.*, 6.0.*]
15-
composer-flags: ['--prefer-stable']
14+
symfony: [5.4.*]
15+
composer-flags: ['--prefer-lowest']
1616
include:
17-
#- php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
18-
# symfony: 5.4.*
19-
# composer-flags: '--prefer-lowest'
17+
- php: 8.0
18+
symfony: 6.0.*
19+
composer-flags: '--prefer-stable'
2020

2121
- php: 8.1
22-
symfony: 6.1.*
22+
symfony: 6.0.*
23+
composer-flags: '--prefer-stable'
24+
25+
- php: 8.2
26+
symfony: 6.0.*
2327
composer-flags: '--prefer-stable'
2428

2529
- php: 8.1
26-
symfony: 6.2.*
30+
symfony: 6.1.*
2731
composer-flags: '--prefer-stable'
2832

2933
- php: 8.2
3034
symfony: 6.1.*
3135
composer-flags: '--prefer-stable'
3236

37+
- php: 8.1
38+
symfony: 6.2.*
39+
composer-flags: '--prefer-stable'
40+
3341
- php: 8.2
3442
symfony: 6.2.*
3543
composer-flags: '--prefer-stable'

src/Command/HelloCommand.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@
77
use Symfony\Component\Console\Input\InputInterface;
88
use Symfony\Component\Console\Output\OutputInterface;
99

10-
#[AsCommand(
11-
name: 'devgine:demo:hello',
12-
description: 'Hello command'
13-
)]
1410
class HelloCommand extends Command
1511
{
12+
protected static $defaultName = 'devgine:demo:hello';
13+
14+
protected function configure(): void
15+
{
16+
$this
17+
// the command help shown when running the command with the "--help" option
18+
->setHelp('Hello command.')
19+
;
20+
}
21+
1622
/** @SuppressWarnings(PHPMD.UnusedFormalParameter) */
1723
protected function execute(InputInterface $input, OutputInterface $output): int
1824
{

0 commit comments

Comments
 (0)