Skip to content

Commit 98d7d2e

Browse files
committed
Fix linting for symfony 7
1 parent b41a3cc commit 98d7d2e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/Command/EnqueueEcommerceAbandonedCartCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
6565
}
6666

6767
#[\Override]
68-
protected function execute(InputInterface $input, OutputInterface $output)
68+
protected function execute(InputInterface $input, OutputInterface $output): int
6969
{
7070
if (!$this->lock()) {
7171
$this->io->error('The command is already running in another process.');

src/Serializer/ListResourcesResponseNormalizer.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(
1717
}
1818

1919
#[\Override]
20-
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = [])
20+
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
2121
{
2222
Assert::classExists($type);
2323
Assert::isArray($data);
@@ -42,4 +42,11 @@ public function supportsDenormalization($data, string $type, ?string $format = n
4242
$context['type'] === ListResourcesResponseInterface::class
4343
;
4444
}
45+
46+
public function getSupportedTypes(?string $format): array
47+
{
48+
return [
49+
ListResourcesResponseInterface::class => false,
50+
];
51+
}
4552
}

0 commit comments

Comments
 (0)