Skip to content

Commit 40c1e20

Browse files
authored
Merge pull request #5 from ownede/patch-1
Allow excluding exceptions by interface
2 parents 38abdd4 + 52193fb commit 40c1e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Provider/RollbarHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function shouldSkip(\Exception $exception)
137137
{
138138
// check exception
139139
foreach ($this->exclude as $instance) {
140-
if (class_exists($instance) && $exception instanceof $instance) {
140+
if ((class_exists($instance) || interface_exists($instance)) && $exception instanceof $instance) {
141141
return true;
142142
}
143143
}

0 commit comments

Comments
 (0)