1
0
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:
Daniil Gentili 2023-11-26 19:34:49 +01:00
parent e386b072f3
commit 1e2e2248d9
2 changed files with 1 additions and 2 deletions

View File

@ -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>',

View File

@ -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),