Skip to content

Commit

Permalink
Tweal code location param
Browse files Browse the repository at this point in the history
  • Loading branch information
gphargreaves committed Oct 7, 2022
1 parent d476baa commit b7b366a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Psalm/Internal/Analyzer/ClassAnalyzer.php
Expand Up @@ -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) {
Expand Down

0 comments on commit b7b366a

Please sign in to comment.