Skip to content

Commit

Permalink
fix annotation command
Browse files Browse the repository at this point in the history
  • Loading branch information
trippo committed Dec 9, 2024
1 parent e5460ce commit 7a90a67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ parameters:
paths:
- src

checkMissingIterableValueType: true
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
4 changes: 4 additions & 0 deletions src/Commands/EnumAnnotateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ protected function annotateFolder(): int

if (count($searchDirectoryMap) > 0) {
foreach ($searchDirectoryMap as $class => $_) {
if(!enum_exists($class)){
continue;
}

$reflection = new ReflectionEnum($class);

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

0 comments on commit 7a90a67

Please sign in to comment.