Skip to content

Commit 3c9960a

Browse files
committed
fix: update deprecations
1 parent 5ecfbf9 commit 3c9960a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/LogConfig.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ public static function setDefaultHandlerLevel(string $level):void {
4949
self::$defaultHandlerLevel = $level;
5050
}
5151

52-
public static function addHandler(LogHandler $handler, string $logLevel = null):void {
52+
public static function addHandler(
53+
LogHandler $handler,
54+
?string $logLevel = null,
55+
):void {
5356
array_push(self::$handlers, $handler);
5457
array_push(self::$handlerLevels, $logLevel ?? self::$defaultHandlerLevel);
5558
}

test/phpunit/LogTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function test_levelOutput_all():void {
7272

7373
Log::debug("This is not critical!");
7474
Log::critical("This is critical!");
75-
$output = self::getActualOutput();
75+
$output = self::getActualOutputForAssertion();
7676
self::assertStringContainsString("This is critical!", $output);
7777
self::assertStringContainsString("This is not critical!", $output);
7878
}

0 commit comments

Comments
 (0)