1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fixed exhuming enums as enums, not as classes

This commit is contained in:
Yannick Gottschalk 2023-07-03 09:57:14 +02:00
parent 8d1876a8a3
commit 1787960027

View File

@ -553,6 +553,8 @@ final class Codebase
$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);
}