Skip to content

Commit e745b79

Browse files
committed
ClassReflection: narrow getNativeReflection after isEnum is true
1 parent 9a0bfd2 commit e745b79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Reflection/ClassReflection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ public function isTrait(): bool
714714

715715
/**
716716
* @phpstan-assert-if-true ReflectionEnum $this->reflection
717+
* @phpstan-assert-if-true ReflectionEnum $this->getNativeReflection()
717718
*/
718719
public function isEnum(): bool
719720
{

0 commit comments

Comments
 (0)