mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix wrong type
This commit is contained in:
parent
e386b072f3
commit
1e2e2248d9
@ -384,7 +384,7 @@ return [
|
||||
'items' => 'array<int, PhpParser\\Node\\Expr\\ArrayItem|null>',
|
||||
],
|
||||
'phpparser\\node\\expr\\shellexec' => [
|
||||
'parts' => 'list<PhpParser\\Node>',
|
||||
'parts' => 'list<PhpParser\\Node\\Expr>',
|
||||
],
|
||||
'phpparser\\node\\matcharm' => [
|
||||
'conds' => 'null|non-empty-list<PhpParser\\Node\\Expr>',
|
||||
|
@ -375,7 +375,6 @@ final class ExpressionAnalyzer
|
||||
}
|
||||
|
||||
if ($stmt instanceof PhpParser\Node\Expr\ShellExec) {
|
||||
/** @psalm-suppress ArgumentTypeCoercion $stmt->parts is untyped, but it's a list of expressions */
|
||||
$concat = new VirtualEncapsed($stmt->parts, $stmt->getAttributes());
|
||||
$virtual_call = new VirtualFuncCall(new VirtualName(['shell_exec']), [
|
||||
new VirtualArg($concat),
|
||||
|
Loading…
Reference in New Issue
Block a user