1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 09:47:29 +01:00
This commit is contained in:
Roland Franssen :) 2021-09-02 20:39:03 +02:00
parent a4356089ef
commit 27faf9502e

View File

@ -18,6 +18,8 @@ class EmptyAnalyzer
) : void { ) : void {
IssetAnalyzer::analyzeIssetVar($statements_analyzer, $stmt->expr, $context); IssetAnalyzer::analyzeIssetVar($statements_analyzer, $stmt->expr, $context);
$codebase = $statements_analyzer->getCodebase();
if (isset($codebase->config->forbidden_functions['empty'])) { if (isset($codebase->config->forbidden_functions['empty'])) {
if (IssueBuffer::accepts( if (IssueBuffer::accepts(
new ForbiddenCode( new ForbiddenCode(