Skip to content

Commit

Permalink
Added missing node to build a null value for the exception argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jun 25, 2024
1 parent aa09c5c commit ea3ba4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plugin/Filtering/Builder/ExclusionsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public function build(): \Generator
value: $exclusion['reason'],

Check failure on line 39 in src/Plugin/Filtering/Builder/ExclusionsBuilder.php

View workflow job for this annotation

GitHub Actions / phpstan

Offset 'reason' does not exist on array<int, PhpParser\Node\Expr>.
name: new Node\Identifier('reason')
),
new Node\Arg(
value: new Node\Expr\ConstFetch(
name: new Node\Name('null')
),
name: new Node\Identifier('exception')
),
new Node\Arg(
value: new Node\Expr\Variable('input'),
name: new Node\Identifier('values')
Expand Down

0 comments on commit ea3ba4b

Please sign in to comment.