Skip to content

Commit 7a90a67

Browse files
committed
fix annotation command
1 parent e5460ce commit 7a90a67

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

phpstan.neon

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ parameters:
44
paths:
55
- src
66

7-
checkMissingIterableValueType: true
8-
checkGenericClassInNonGenericObjectType: false
9-
reportUnmatchedIgnoredErrors: false

src/Commands/EnumAnnotateCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ protected function annotateFolder(): int
5252

5353
if (count($searchDirectoryMap) > 0) {
5454
foreach ($searchDirectoryMap as $class => $_) {
55+
if(!enum_exists($class)){
56+
continue;
57+
}
58+
5559
$reflection = new ReflectionEnum($class);
5660

5761
if ($reflection->isSubclassOf(UnitEnum::class)) {

0 commit comments

Comments
 (0)