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