diff --git a/src/Psalm/Codebase.php b/src/Psalm/Codebase.php index 4a87186bea7..7e157e327b4 100644 --- a/src/Psalm/Codebase.php +++ b/src/Psalm/Codebase.php @@ -1565,7 +1565,7 @@ public function getCompletionItemsForClassishThing( string $gap, bool $snippets_supported = false, array $allow_visibilities = null, - array $ignore_fq_class_names = [] + array $ignore_fq_class_names = [], ): array { if ($allow_visibilities === null) { $allow_visibilities = [ diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php index 24864e9dd9b..7e1c1a9758d 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php @@ -852,9 +852,6 @@ public static function verifyType( if ($candidate_callable && $candidate_callable !== $atomic_type) { // if we had an array callable, mark it as used now, since it's not possible later $potential_method_id = null; - if ($atomic_type instanceof TList) { - $atomic_type = $atomic_type->getKeyedArray(); - } if ($atomic_type instanceof TKeyedArray) { $potential_method_id = CallableTypeComparator::getCallableMethodIdFromTKeyedArray( diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php index 9e63d95161c..87106622daa 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php @@ -1036,9 +1036,9 @@ private static function handlePossiblyMatchingByRefParam( $function_params, static function ( ?FunctionLikeParameter $function_param, - FunctionLikeParameter $param + FunctionLikeParameter $param, ) use ( - $arg + $arg, ) { if ($param->name === $arg->name->name) { return $param; diff --git a/src/Psalm/Internal/Provider/ParamsProvider/ArrayFilterParamsProvider.php b/src/Psalm/Internal/Provider/ParamsProvider/ArrayFilterParamsProvider.php index 44a4908d41f..e89abe8978f 100644 --- a/src/Psalm/Internal/Provider/ParamsProvider/ArrayFilterParamsProvider.php +++ b/src/Psalm/Internal/Provider/ParamsProvider/ArrayFilterParamsProvider.php @@ -1,5 +1,7 @@ getBuilder(); foreach ($existing_var_type->getAtomicTypes() as $atomic_key => $type) {