diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/EmptyAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/EmptyAnalyzer.php index 1082492a1..331ff93f5 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/EmptyAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/EmptyAnalyzer.php @@ -18,6 +18,8 @@ class EmptyAnalyzer ) : void { IssetAnalyzer::analyzeIssetVar($statements_analyzer, $stmt->expr, $context); + $codebase = $statements_analyzer->getCodebase(); + if (isset($codebase->config->forbidden_functions['empty'])) { if (IssueBuffer::accepts( new ForbiddenCode(