mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-11 07:34:12 +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
|
* Minimum level for logs that are passed to handler
|
||||||
*
|
*
|
||||||
* @var int[]
|
* @var int[]
|
||||||
* @phpstan-var Level[]
|
* @phpstan-var array<Level, int>
|
||||||
*/
|
*/
|
||||||
protected $acceptedLevels;
|
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
|
public function getAcceptedLevels(): array
|
||||||
{
|
{
|
||||||
|
@@ -382,6 +382,7 @@ class Logger implements LoggerInterface, ResettableInterface
|
|||||||
* Gets all supported logging levels.
|
* Gets all supported logging levels.
|
||||||
*
|
*
|
||||||
* @return array<string, int> Assoc array with human-readable level names => level codes.
|
* @return array<string, int> Assoc array with human-readable level names => level codes.
|
||||||
|
* @phpstan-return array<LevelName, Level>
|
||||||
*/
|
*/
|
||||||
public static function getLevels(): array
|
public static function getLevels(): array
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user