mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fixes
This commit is contained in:
parent
098d5020d0
commit
c454a181cc
@ -56,17 +56,17 @@
|
||||
<code>$source_parts[1]</code>
|
||||
</PossiblyUndefinedIntArrayOffset>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForAnalyzer.php">
|
||||
<ArgumentTypeCoercion occurrences="1">
|
||||
<code>$stmt->cond</code>
|
||||
</ArgumentTypeCoercion>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/Block/ForeachAnalyzer.php">
|
||||
<ConflictingReferenceConstraint occurrences="2">
|
||||
<code>if (AtomicTypeComparator::isContainedBy(</code>
|
||||
<code>if (AtomicTypeComparator::isContainedBy(</code>
|
||||
</ConflictingReferenceConstraint>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/Block/LoopAnalyzer.php">
|
||||
<PossiblyUndefinedIntArrayOffset occurrences="1">
|
||||
<code>$pre_conditions[0]</code>
|
||||
</PossiblyUndefinedIntArrayOffset>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/Block/SwitchAnalyzer.php">
|
||||
<InvalidPropertyAssignmentValue occurrences="1">
|
||||
<code>$context->assigned_var_ids += $switch_scope->new_assigned_var_ids</code>
|
||||
|
@ -33,8 +33,8 @@ class LoopAnalyzer
|
||||
/**
|
||||
* Checks an array of statements in a loop
|
||||
*
|
||||
* @param array<PhpParser\Node\Stmt> $stmts
|
||||
* @param PhpParser\Node\Expr[] $pre_conditions
|
||||
* @param list<PhpParser\Node\Stmt> $stmts
|
||||
* @param list<PhpParser\Node\Expr> $pre_conditions
|
||||
* @param PhpParser\Node\Expr[] $post_expressions
|
||||
* @return false|null
|
||||
*/
|
||||
|
@ -2133,7 +2133,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
'arrayMapWithEmptyArrayReturn' => [
|
||||
'code' => '<?php
|
||||
/**
|
||||
* @param array<array<string>> $elements
|
||||
* @param array<int, array<string>> $elements
|
||||
* @return list<string>
|
||||
*/
|
||||
function resolvePossibleFilePaths($elements) : array
|
||||
|
Loading…
Reference in New Issue
Block a user