Skip to content

Commit

Permalink
suppress false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Nov 18, 2023
1 parent 52cd67a commit 9212472
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -961,6 +961,7 @@ public static function verifyType(
$parts = explode('::', $input_type_part->value);
$potential_method_ids[] = new MethodIdentifier(
$parts[0],
/** @psalm-suppress PossiblyUndefinedIntArrayOffset */
strtolower($parts[1]),

Check failure on line 965 in src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php

View workflow job for this annotation

GitHub Actions / build

PossiblyUndefinedIntArrayOffset

src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentAnalyzer.php:965:36: PossiblyUndefinedIntArrayOffset: Possibly undefined array offset '1' is risky given expected type 'int<0, max>'. Consider using isset beforehand. (see https://psalm.dev/215)
);
}
Expand Down

0 comments on commit 9212472

Please sign in to comment.