1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-11 15:44:34 +02:00

Tweak some type annotations

This commit is contained in:
Jordi Boggiano
2021-08-17 14:13:55 +02:00
parent 7131256475
commit f2156cdd55
2 changed files with 3 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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
{