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

Merge pull request #9988 from ygottschalk/fix/9968-exhume-enum

Fixed exhuming enums as enums, not as classes
This commit is contained in:
orklah 2023-07-03 21:41:36 +02:00 committed by GitHub
commit 1f92b8d822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}