From 866bf583c40112df19df0b1e459e982aec205b31 Mon Sep 17 00:00:00 2001 From: Brown Date: Fri, 4 Sep 2020 16:50:10 -0400 Subject: [PATCH] Prevent crash when suppressing UndefinedTrait Fixes #4130 --- src/Psalm/Internal/Analyzer/ClassAnalyzer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php index ff74217a6..518035fa1 100644 --- a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php @@ -1520,6 +1520,8 @@ class ClassAnalyzer extends ClassLikeAnalyzer )) { return false; } + + return null; } else { if (!$codebase->traitHasCorrectCase($fq_trait_name)) { if (IssueBuffer::accepts(