Skip to content

Commit 1dbef13

Browse files
tempStephan Wentz
andauthored
Add missing AsCommand attributes for commands (#532)
Co-authored-by: Stephan Wentz <[email protected]>
1 parent f4c0e0e commit 1dbef13

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,11 +1205,6 @@ parameters:
12051205
count: 1
12061206
path: src/Library/Console/KeysetAnalyzerCommand.php
12071207

1208-
-
1209-
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
1210-
count: 1
1211-
path: src/Library/Console/NoneKeyGeneratorCommand.php
1212-
12131208
-
12141209
message: "#^Cannot cast mixed to int\\.$#"
12151210
count: 1
@@ -1225,11 +1220,6 @@ parameters:
12251220
count: 1
12261221
path: src/Library/Console/OkpKeysetGeneratorCommand.php
12271222

1228-
-
1229-
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
1230-
count: 1
1231-
path: src/Library/Console/PublicKeyCommand.php
1232-
12331223
-
12341224
message: "#^Cannot cast mixed to int\\.$#"
12351225
count: 1
@@ -1240,11 +1230,6 @@ parameters:
12401230
count: 2
12411231
path: src/Library/Console/RsaKeysetGeneratorCommand.php
12421232

1243-
-
1244-
message: "#^Attribute class Jose\\\\Component\\\\Console\\\\AsCommand does not exist\\.$#"
1245-
count: 1
1246-
path: src/Library/Console/X5ULoaderCommand.php
1247-
12481233
-
12491234
message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#"
12501235
count: 1

src/Library/Console/NoneKeyGeneratorCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Jose\Component\Console;
66

77
use Jose\Component\KeyManagement\JWKFactory;
8+
use Symfony\Component\Console\Attribute\AsCommand;
89
use Symfony\Component\Console\Input\InputInterface;
910
use Symfony\Component\Console\Output\OutputInterface;
1011

src/Library/Console/PublicKeyCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use InvalidArgumentException;
88
use Jose\Component\Core\JWK;
99
use Jose\Component\Core\Util\JsonConverter;
10+
use Symfony\Component\Console\Attribute\AsCommand;
1011
use Symfony\Component\Console\Input\InputArgument;
1112
use Symfony\Component\Console\Input\InputInterface;
1213
use Symfony\Component\Console\Output\OutputInterface;

src/Library/Console/X5ULoaderCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use InvalidArgumentException;
88
use Jose\Component\KeyManagement\X5UFactory;
9+
use Symfony\Component\Console\Attribute\AsCommand;
910
use Symfony\Component\Console\Input\InputArgument;
1011
use Symfony\Component\Console\Input\InputInterface;
1112
use Symfony\Component\Console\Output\OutputInterface;

0 commit comments

Comments
 (0)