Skip to content

Commit 66e7c93

Browse files
authored
fixed compatibility with Lumen without sessions
this fix was originally proposed on issue rollbar#83 and PR rollbar#84 and rollbar#90 without further interaction/response from the original contributor.
1 parent 9ffed90 commit 66e7c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MonologHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function addContext(array $context = [])
5959
}
6060

6161
// Add session data.
62-
if ($session = $this->app->session->all()) {
62+
if ($this->app->has('session') && $session = $this->app->session->all()) {
6363
// Add user session information.
6464
if (isset($person['session'])) {
6565
$person['session'] = array_merge($session, $person['session']);

0 commit comments

Comments
 (0)