Skip to content

Commit fb53e1e

Browse files
authored
Merge pull request #106 from gabrielslau/master
fixed compatibility with Lumen 8.x without sessions
2 parents 3dd964a + d5f579e commit fb53e1e

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 (isset($this->app->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)