1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Prevent crash when suppressing UndefinedTrait

Fixes #4130
This commit is contained in:
Brown 2020-09-04 16:50:10 -04:00
parent f4c2edf40b
commit cf3e92410c

View File

@ -1520,6 +1520,8 @@ class ClassAnalyzer extends ClassLikeAnalyzer
)) {
return false;
}
return null;
} else {
if (!$codebase->traitHasCorrectCase($fq_trait_name)) {
if (IssueBuffer::accepts(