This commit is contained in:
Niels Vanpachtenbeke 2022-01-19 10:33:54 +01:00
parent f81164eee8
commit 86f26e6618

View File

@ -108,7 +108,10 @@ class SuppressHandler implements AfterClassLikeVisitInterface
foreach (self::BY_CLASS_METHOD as $issue => $method_by_class) {
foreach ($method_by_class[$class->name] ?? [] as $method_name) {
/** @psalm-suppress RedundantCast */
/**
* @psalm-suppress RedundantCast
* @psalm-suppress RedundantFunctionCall
*/
self::suppress($issue, $class->methods[strtolower($method_name)] ?? null);
}
}