1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-18 23:26:20 +02:00

add some @throws in constructors (#1779)

This commit is contained in:
Thomas Müller
2023-02-04 16:26:41 +01:00
committed by GitHub
parent c424dbc6a5
commit 616c675160
20 changed files with 38 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ class ErrorLogHandler extends AbstractProcessingHandler
/**
* @param int $messageType Says where the error should go.
* @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
*
* @throws \InvalidArgumentException If an unsupported message type is set
*/
public function __construct(int $messageType = self::OPERATING_SYSTEM, int|string|Level $level = Level::Debug, bool $bubble = true, bool $expandNewlines = false)
{