Skip to content

Commit 52193fb

Browse files
authored
Allow excluding exceptions by interface
1 parent 38abdd4 commit 52193fb

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)