Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9bfaea

Browse files
committed
[HttpKernel] Remove non-needed alias
1 parent 33c3a7c commit d9bfaea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Psr\Log\LogLevel as PsrLogLevel;
15+
use Psr\Log\LogLevel;
1616
use Symfony\Component\ErrorHandler\Exception\FlattenException;
1717
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1818
use Symfony\Component\HttpFoundation\Request;
@@ -195,10 +195,10 @@ private function resolveLogLevel(\Throwable $throwable): string
195195
}
196196

197197
if (!$throwable instanceof HttpExceptionInterface || $throwable->getStatusCode() >= 500) {
198-
return PsrLogLevel::CRITICAL;
198+
return LogLevel::CRITICAL;
199199
}
200200

201-
return PsrLogLevel::ERROR;
201+
return LogLevel::ERROR;
202202
}
203203

204204
/**

0 commit comments

Comments
 (0)