Skip to content

Commit

Permalink
Fixed exhuming enums as enums, not as classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ygottschalk committed Jul 3, 2023
1 parent 8d1876a commit 1787960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Codebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,8 @@ public function exhumeClassLikeStorage(string $fq_classlike_name, string $file_p
$this->classlikes->addFullyQualifiedTraitName($storage->name, $file_path);
} elseif ($storage->is_interface) {
$this->classlikes->addFullyQualifiedInterfaceName($storage->name, $file_path);
} elseif ($storage->is_enum) {
$this->classlikes->addFullyQualifiedEnumName($storage->name, $file_path);
} else {
$this->classlikes->addFullyQualifiedClassName($storage->name, $file_path);
}
Expand Down

0 comments on commit 1787960

Please sign in to comment.