From 1e2e2248d908d412bdf2762d565b0c9caf937534 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 26 Nov 2023 19:34:49 +0100 Subject: [PATCH] Fix wrong type --- dictionaries/PropertyMap.php | 2 +- src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dictionaries/PropertyMap.php b/dictionaries/PropertyMap.php index 7f07ea657..c5755235e 100644 --- a/dictionaries/PropertyMap.php +++ b/dictionaries/PropertyMap.php @@ -384,7 +384,7 @@ return [ 'items' => 'array', ], 'phpparser\\node\\expr\\shellexec' => [ - 'parts' => 'list', + 'parts' => 'list', ], 'phpparser\\node\\matcharm' => [ 'conds' => 'null|non-empty-list', diff --git a/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php index fad82a2e9..063277aaf 100644 --- a/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php @@ -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),