Skip to content

Commit

Permalink
discard psalm error
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Aug 26, 2023
1 parent 612f004 commit 7d74bea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runner/Proof/Scenario/Inline.php
Expand Up @@ -57,6 +57,10 @@ public function parameters(): array
$testThis = $reflection->getClosureThis();

if ($testThis instanceof Compatibility) {
/**
* @psalm-suppress MixedArrayAccess
* @var \Closure
*/
$innerTest = $reflection->getClosureUsedVariables()['test'];
$parameters = (new \ReflectionFunction($innerTest))->getParameters();
} else {
Expand Down

0 comments on commit 7d74bea

Please sign in to comment.