We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5460ce commit 7a90a67Copy full SHA for 7a90a67
phpstan.neon
@@ -4,6 +4,3 @@ parameters:
4
paths:
5
- src
6
7
- checkMissingIterableValueType: true
8
- checkGenericClassInNonGenericObjectType: false
9
- reportUnmatchedIgnoredErrors: false
src/Commands/EnumAnnotateCommand.php
@@ -52,6 +52,10 @@ protected function annotateFolder(): int
52
53
if (count($searchDirectoryMap) > 0) {
54
foreach ($searchDirectoryMap as $class => $_) {
55
+ if(!enum_exists($class)){
56
+ continue;
57
+ }
58
+
59
$reflection = new ReflectionEnum($class);
60
61
if ($reflection->isSubclassOf(UnitEnum::class)) {
0 commit comments