Skip to content

Commit b968e82

Browse files
committed
bug symfony#24539 Fix LogLevel::DEBUG as min level (damner)
This PR was merged into the 4.0-dev branch. Discussion ---------- Fix LogLevel::DEBUG as min level | Q | A | ------------- | --- | Branch? | 3.4 or master <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!--highly recommended for new features--> <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the 3.4, legacy code removals go to the master branch. - Please fill in this template according to the PR you're about to submit. - Replace this comment by a description of what your PR is solving. --> Commits ------- f15da80 Fix LogLevel::DEBUG as min level
2 parents 8606c15 + f15da80 commit b968e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Log/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Logger extends AbstractLogger
3939

4040
public function __construct($minLevel = null, $output = 'php://stderr', callable $formatter = null)
4141
{
42-
if (!$minLevel) {
42+
if (null === $minLevel) {
4343
$minLevel = LogLevel::WARNING;
4444

4545
if (isset($_SERVER['SHELL_VERBOSITY'])) {

0 commit comments

Comments
 (0)