1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 18:16:10 +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,7 @@ class NormalizerFormatter implements FormatterInterface
/**
* @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format
* @throws \RuntimeException If the function json_encode does not exist
*/
public function __construct(?string $dateFormat = null)
{