--- vendor/monolog/monolog/src/Monolog/Logger.php.orig 2020-04-06 22:25:53.584528112 +0200 +++ ../../nya/Logger.php 2020-04-06 13:14:08.626719310 +0200 @@ -30,19 +30,19 @@ /** * Detailed debug information */ - public const DEBUG = 100; + const DEBUG = 100; /** * Interesting events * * Examples: User logs in, SQL logs. */ - public const INFO = 200; + const INFO = 200; /** * Uncommon events */ - public const NOTICE = 250; + const NOTICE = 250; /** * Exceptional occurrences that are not errors @@ -50,19 +50,19 @@ * Examples: Use of deprecated APIs, poor use of an API, * undesirable things that are not necessarily wrong. */ - public const WARNING = 300; + const WARNING = 300; /** * Runtime errors */ - public const ERROR = 400; + const ERROR = 400; /** * Critical conditions * * Example: Application component unavailable, unexpected exception. */ - public const CRITICAL = 500; + const CRITICAL = 500; /** * Action must be taken immediately @@ -70,12 +70,12 @@ * Example: Entire website down, database unavailable, etc. * This should trigger the SMS alerts and wake you up. */ - public const ALERT = 550; + const ALERT = 550; /** * Urgent alert. */ - public const EMERGENCY = 600; + const EMERGENCY = 600; /** * Monolog API version @@ -85,7 +85,7 @@ * * @var int */ - public const API = 2; + const API = 2; /** * This is a static variable and not a constant to serve as an extension point for custom levels @@ -145,7 +145,7 @@ * @param callable[] $processors Optional array of processors * @param DateTimeZone|null $timezone Optional timezone, if not provided date_default_timezone_get() will be used */ - public function __construct(string $name, array $handlers = [], array $processors = [], ?DateTimeZone $timezone = null) + public function __construct(string $name, array $handlers = [], array $processors = [], DateTimeZone $timezone = null) { $this->name = $name; $this->setHandlers($handlers); @@ -448,14 +448,14 @@ * * The callable will receive an exception object and the record that failed to be logged */ - public function setExceptionHandler(?callable $callback): self + public function setExceptionHandler(callable $callback): self { $this->exceptionHandler = $callback; return $this; } - public function getExceptionHandler(): ?callable + public function getExceptionHandler(): callable { return $this->exceptionHandler; }