From 95493e1a66982c92c91008776fd1118f2b7f5403 Mon Sep 17 00:00:00 2001 From: sasezaki Date: Sun, 2 Feb 2025 18:46:46 +0900 Subject: [PATCH] PHPUnit test provider method should be static --- src/Test/LoggerInterfaceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/LoggerInterfaceTest.php b/src/Test/LoggerInterfaceTest.php index dcb975a..25ac0d0 100644 --- a/src/Test/LoggerInterfaceTest.php +++ b/src/Test/LoggerInterfaceTest.php @@ -54,7 +54,7 @@ public function testLogsAtAllLevels($level, $message) $this->assertEquals($expected, $this->getLogs()); } - public function provideLevelsAndMessages() + public static function provideLevelsAndMessages() { return [ LogLevel::EMERGENCY => [LogLevel::EMERGENCY, 'message of level emergency with context: {user}'],