File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments