getExpr(); $statements_source = $event->getStatementsSource(); if ($expr instanceof PhpParser\Node\Expr\Assign && ($expr_type = $statements_source->getNodeTypeProvider()->getType($expr->expr)) && $expr_type->hasFloat() ) { if (\Psalm\IssueBuffer::accepts( new NoFloatAssignment( 'Don’t assign to floats', new CodeLocation($statements_source, $expr) ), $statements_source->getSuppressedIssues() )) { // fall through } } return null; } } class NoFloatAssignment extends \Psalm\Issue\PluginIssue { }