mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 23:24:02 +02:00
Tweak some type annotations
This commit is contained in:
@@ -44,7 +44,7 @@ class FilterHandler extends Handler implements ProcessableHandlerInterface, Rese
|
||||
* Minimum level for logs that are passed to handler
|
||||
*
|
||||
* @var int[]
|
||||
* @phpstan-var Level[]
|
||||
* @phpstan-var array<Level, int>
|
||||
*/
|
||||
protected $acceptedLevels;
|
||||
|
||||
@@ -78,7 +78,7 @@ class FilterHandler extends Handler implements ProcessableHandlerInterface, Rese
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-return Level[]
|
||||
* @phpstan-return array<int, Level>
|
||||
*/
|
||||
public function getAcceptedLevels(): array
|
||||
{
|
||||
|
@@ -382,6 +382,7 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
* Gets all supported logging levels.
|
||||
*
|
||||
* @return array<string, int> Assoc array with human-readable level names => level codes.
|
||||
* @phpstan-return array<LevelName, Level>
|
||||
*/
|
||||
public static function getLevels(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user