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:
parent
45a19b3f3c
commit
dc776d3ada
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user