Skip to content

Commit

Permalink
default to level info
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Aug 17, 2022
1 parent 92f497f commit cee752f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Log/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public function setLevel(LevelInterface $level): static
/**
* Get the log level of the entry
*
* @return null|LevelInterface
* @return LevelInterface
*/
public function getLevel(): ?LevelInterface
public function getLevel(): LevelInterface
{
return $this->level;
return $this->level ?? Level::INFO;
}

/**
Expand Down

0 comments on commit cee752f

Please sign in to comment.