Skip to content

Commit

Permalink
Excluding interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter authored Aug 25, 2024
1 parent c3ac41f commit 7bf19a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Selector/IsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public function getName(): string

public function matches(ClassReflection $classReflection): bool
{
return $classReflection->implementsInterface(\Throwable::class);
return $classReflection->implementsInterface(\Throwable::class) && ! $classReflection->isInterface();
}
}

0 comments on commit 7bf19a7

Please sign in to comment.