Skip to content

Commit 90a9ab0

Browse files
fixes #5
1 parent 376be21 commit 90a9ab0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Handler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected function _shutdown() {
207207

208208
$e = error_get_last();
209209
if ($e && $e['type'] === E_ERROR) {
210-
$this->_error($e['type'], $e['message'], $e['file'], $e['line'], $e['context']);
210+
$this->_error($e['type'], $e['message'], $e['file'], $e['line'], $e['context'] ?? []);
211211
}
212212

213213
foreach ($this->_shutdownHandlers as $handler) {
@@ -244,8 +244,8 @@ public function handle(...$arguments) : bool {
244244
} catch (Throwable $e) {
245245
throw new ExceptableException(
246246
ExceptableException::INVALID_HANDLER,
247-
['type' => $this->_type()],
248-
$e
247+
$e,
248+
['type' => $this->_type()]
249249
);
250250
}
251251
}

0 commit comments

Comments
 (0)