Skip to content

Commit

Permalink
fix: namespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Molenda committed Feb 5, 2024
1 parent 7890dc3 commit 3992787
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/StreplyMonologHandlerProcessingHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Monolog\Logger;
use Streply\Enum\Level as StreplyEnumLevel;

if (Monolog\Logger::API >= 3) {
if (Logger::API >= 3) {
trait StreplyMonologHandlerProcessingHandlerTrait
{
abstract protected function doWrite(array $record): void;
Expand Down Expand Up @@ -60,9 +60,9 @@ protected function write(array $record): void
private function getEventType(int $level): int
{
switch ($level) {
case Monolog\Logger::ERROR:
case Monolog\Logger::CRITICAL:
case Monolog\Logger::ALERT:
case Logger::ERROR:
case Logger::CRITICAL:
case Logger::ALERT:
return self::EVENT_TYPE_ERROR;
}

Expand Down

0 comments on commit 3992787

Please sign in to comment.