Skip to content

Commit 80ca0f6

Browse files
committed
Adjust instantiating Backtrace / setting internal classes
1 parent c4e52d9 commit 80ca0f6

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/Debug/ServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public function register(Container $container)
7171
$backtrace = $debug->errorHandler->backtrace;
7272
$backtrace->addInternalClass(array(
7373
'bdk\\Debug',
74-
'bdk\\PubSub\\',
7574
));
7675
return $backtrace;
7776
};

src/ErrorHandler/AbstractErrorHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ protected function getBacktrace()
112112
{
113113
if (!$this->backtrace) {
114114
$this->backtrace = new Backtrace();
115+
$this->backtrace->addInternalClass(array(
116+
'bdk\\ErrorHandler',
117+
'bdk\\PubSub\\',
118+
));
115119
}
116120
return $this->backtrace;
117121
}

src/ErrorHandler/Error.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ public function __construct(ErrorHandler $errHandler, array $values)
113113
}
114114
if (\in_array($this->values['type'], array(E_ERROR, E_USER_ERROR)) && $this->values['exception'] === null) {
115115
// will return empty unless xdebug extension installed/enabled
116-
$this->subject->backtrace->addInternalClass(array(
117-
'bdk\\ErrorHandler',
118-
'bdk\\PubSub',
119-
));
120116
$this->backtrace = $this->subject->backtrace->get();
121117
}
122118
}

0 commit comments

Comments
 (0)