Skip to content

Commit 82a2b4d

Browse files
ISSUE-16: PHP 8.4 upgrade
1 parent bcbf5d2 commit 82a2b4d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
ci:
77
name: Run CI
88
runs-on: ubuntu-latest
9+
env:
10+
PHP_CS_FIXER_IGNORE_ENV: true
911
steps:
1012
# https://github.com/marketplace/actions/setup-php-action
1113
- name: Setup PHP 8.4

src/Infrastructure/CQRS/Bus/CommandHandlerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @param iterable<CommandHandler> $commandHandlers
1313
*
14-
* @return array<string, array<int,array<int, CommandHandler|string>>>
14+
* @return array<string, non-empty-list<\Closure>>
1515
*/
1616
public function fromCallables(iterable $commandHandlers): array
1717
{

src/Infrastructure/CQRS/Bus/InMemoryCommandBus.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public function __construct(
2626
$this->bus = new MessageBus([
2727
new HandleMessageMiddleware(
2828
new HandlersLocator(
29-
// @phpstan-ignore-next-line
30-
(new CommandHandlerBuilder())->fromCallables($commandHandlers),
29+
new CommandHandlerBuilder()->fromCallables($commandHandlers),
3130
),
3231
),
3332
]);

tests/strava.db

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)