From b7b366a23404f680616fde74b621561c8b4f7ba7 Mon Sep 17 00:00:00 2001 From: Gregory Hargreaves Date: Fri, 7 Oct 2022 02:41:28 +0100 Subject: [PATCH] Tweal code location param --- src/Psalm/Internal/Analyzer/ClassAnalyzer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php index b898578800d..848b392cf4c 100644 --- a/src/Psalm/Internal/Analyzer/ClassAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/ClassAnalyzer.php @@ -509,12 +509,12 @@ public function analyze( IssueBuffer::maybeAdd( new ReservedWord( 'A class constant cannot be named \'class\'', - new CodeLocation($this, $this->class), + new CodeLocation($this, $const), $this->fq_class_name ) ); } - + $const_id = strtolower($this->fq_class_name) . '::' . $const->name; foreach ($codebase->class_constants_to_rename as $original_const_id => $new_const_name) {