Fix some issues reported by mago#856
Conversation
| interface ParameterResolver | ||
| { | ||
| /** @return iterable<mixed> */ | ||
| /** @return iterable<int, mixed> */ |
There was a problem hiding this comment.
this is technically a bc-break, but we are using the spread operator already on the result of ParameterResolver::resolve, which means it can be only be working with an int as the key. Also, we typed it like that in our concrete implementation https://github.com/patchlevel/event-sourcing/pull/856/changes#diff-fb59bb4d80adcd4ac904abb097ca2b9c8013a263a00117b936eaecc5f4d3a732L22
| ); | ||
| } | ||
|
|
||
| /** @var class-string $commandClass */ |
There was a problem hiding this comment.
getClassName is already typed as T of class-string
There was a problem hiding this comment.
phpstan seems to not really pick it up 🤔
|
Hello 👋 here is the most recent benchmark result:
This comment gets update everytime a new commit comes in! |
|
|
||
| $firstTrace = $error['trace'][0]; | ||
|
|
||
| self::assertIsArray($firstTrace); |
There was a problem hiding this comment.
phpstan seems to have a better type knowledge at this place then mago
No description provided.