Skip to content

Commit 6f2e293

Browse files
committed
change command return type to void
1 parent 5d78130 commit 6f2e293

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Maker/MakeCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ function getEntityHandlerUseStatements(): array
5454
{
5555
return [
5656
CommandHandler::class,
57-
Collection::class,
5857
AsMessageHandler::class
5958
];
6059
}

src/Resources/skeleton/command/CommandHandler.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#[AsMessageHandler]
88
class <?= $class_name ?> implements CommandHandler
99
{
10-
public function __invoke(<?= $query_class_name ?> $query): Collection
10+
public function __invoke(<?= $query_class_name ?> $query): void
1111
{
1212
}
1313
}

0 commit comments

Comments
 (0)