Skip to content

Commit

Permalink
Add PSR-20 ClockInterface support for customizable timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
omerimzali committed Feb 3, 2025
1 parent 570eaba commit 8301707
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Monolog/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Throwable;
use Stringable;
use WeakMap;
use Monolog\LoggerClock;

/**
* Monolog log channel
Expand Down Expand Up @@ -151,7 +150,7 @@ class Logger implements LoggerInterface, ResettableInterface
protected Closure|null $exceptionHandler = null;

protected ClockInterface|null $clock = null;

Check failure on line 152 in src/Monolog/Logger.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Property Monolog\Logger::$clock has unknown class Psr\Clock\ClockInterface as its type.

Check failure on line 152 in src/Monolog/Logger.php

View workflow job for this annotation

GitHub Actions / PHPStan (latest)

Property Monolog\Logger::$clock has unknown class Psr\Clock\ClockInterface as its type.

/**
* Keeps track of depth to prevent infinite logging loops
*/
Expand Down

0 comments on commit 8301707

Please sign in to comment.