Skip to content

Commit 05db524

Browse files
committed
fix phpstan
1 parent 6326d44 commit 05db524

4 files changed

Lines changed: 49 additions & 41 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"infection/infection": "^0.29.12",
4242
"league/commonmark": "^2.6.1",
4343
"patchlevel/coding-standard": "^1.3.0",
44-
"patchlevel/event-sourcing-phpstan-extension": "^1.0",
44+
"patchlevel/event-sourcing-phpstan-extension": "dev-event-sourcing-4.0",
4545
"patchlevel/event-sourcing-psalm-plugin": "^3.1.0",
4646
"phpat/phpat": "^0.11.3",
4747
"phpbench/phpbench": "^1.4.1",

composer.lock

Lines changed: 41 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ parameters:
276276
count: 1
277277
path: tests/Integration/Subscription/SubscriptionTest.php
278278

279+
-
280+
message: '#^Cannot use array destructuring on list\<mixed\>\|null\.$#'
281+
identifier: offsetAccess.nonArray
282+
count: 1
283+
path: tests/ReturnCallback.php
284+
279285
-
280286
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Metadata\\\\AggregateRoot\\\\AggregateRootMetadata'' and Patchlevel\\EventSourcing\\Metadata\\AggregateRoot\\AggregateRootMetadata\<Patchlevel\\EventSourcing\\Aggregate\\BasicAggregateRoot\> will always evaluate to true\.$#'
281287
identifier: staticMethod.alreadyNarrowedType

tests/ReturnCallback.php

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

1111
final class ReturnCallback
1212
{
13-
/** @param array{list<mixed>, mixed} $series */
13+
/** @param list<array{list<mixed>, mixed}> $series */
1414
public function __construct(
1515
private array $series,
1616
) {

0 commit comments

Comments
 (0)