Skip to content

Commit 3452ed8

Browse files
committed
test: allow CommandBus handler layer to depend on Identifier
1 parent d8a6c8b commit 3452ed8

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ parameters:
2424
count: 1
2525
path: src/Attribute/Subscriber.php
2626

27-
-
28-
message: '#^Patchlevel\\EventSourcing\\CommandBus\\Handler\\UpdateAggregateHandler should not depend on Patchlevel\\EventSourcing\\Identifier\\Identifier$#'
29-
identifier: phpat.testCommandBusCanOnlyDependOnAllowedLayers
30-
count: 2
31-
path: src/CommandBus/Handler/UpdateAggregateHandler.php
32-
3327
-
3428
message: '#^Patchlevel\\EventSourcing\\CommandBus\\InstantRetryCommandBus should not depend on Patchlevel\\EventSourcing\\Store\\AppendConditionNotMet$#'
3529
identifier: phpat.testCommandBusCanOnlyDependOnAllowedLayers

tests/Architecture/LayerDependenciesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function testCommandBusCanOnlyDependOnAllowedLayers(): Rule
4444
$this->layer('Attribute'),
4545
$this->layer('Metadata\AggregateRoot'),
4646
$this->layer('Repository'),
47+
$this->layer('Identifier'),
4748
],
4849
);
4950
}

0 commit comments

Comments
 (0)