Skip to content

Commit 1153cbe

Browse files
Prevent Symfony 6 deprecation notices (#327)
Co-authored-by: Florent Morselli <[email protected]>
1 parent 6ee4931 commit 1153cbe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Bundle/JoseFramework/DataCollector/JoseCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function add(Collector $collector): void
2929
$this->collectors[] = $collector;
3030
}
3131

32-
public function getName()
32+
public function getName(): string
3333
{
3434
return 'jose_collector';
3535
}

src/Component/Console/GeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
abstract class GeneratorCommand extends ObjectOutputCommand
1515
{
16-
public function isEnabled()
16+
public function isEnabled(): bool
1717
{
1818
return class_exists(JWKFactory::class);
1919
}

0 commit comments

Comments
 (0)