1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Suppress false-positive

This commit is contained in:
Bruce Weirdan 2022-02-13 00:48:58 +02:00
parent 45a19b3f3c
commit dc776d3ada
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -1799,6 +1799,7 @@ class Config
// so we should also check reporting levels for the symbol in global scope
$root_function_id = preg_replace('/.*\\\/', '', $function_id);
if ($root_function_id !== $function_id) {
/** @psalm-suppress PossiblyUndefinedStringArrayOffset https://github.com/vimeo/psalm/issues/7656 */
$level = $this->issue_handlers[$issue_type]->getReportingLevelForFunction($root_function_id);
}
}