Skip to content

Commit d955317

Browse files
authored
fix: Debug toolbar logs controller
1 parent f16bf87 commit d955317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Debug/Toolbar/Collectors/Logs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Logs extends BaseCollector
4747
*
4848
* @var list<array{level: string, msg: string}>
4949
*/
50-
protected $data;
50+
protected $data = [];
5151

5252
/**
5353
* Returns the data of this collector to be formatted in the toolbar.
@@ -68,7 +68,7 @@ public function isEmpty(): bool
6868
{
6969
$this->collectLogs();
7070

71-
return $this->data !== [];
71+
return $this->data === [];
7272
}
7373

7474
/**

0 commit comments

Comments
 (0)