Skip to content

Commit

Permalink
Fix psalm analysis on CallFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Nov 10, 2022
1 parent 767350c commit 71a0f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified build/kint.phar
Binary file not shown.
3 changes: 2 additions & 1 deletion src/CallFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ public static function getFunctionCalls(string $source, int $line, $function): a
}

// Skip first-class callables
if (KINT_PHP81 && 1 === \count($params) && '...' === $param['path']) {
/** @psalm-var list<array{name: string, path: string, expression: bool}> $params */
if (KINT_PHP81 && 1 === \count($params) && '...' === \reset($params)['path']) {
continue;
}

Expand Down

0 comments on commit 71a0f64

Please sign in to comment.