diff --git a/composer.json b/composer.json index 9bd189e..20beb17 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "psr/log": "^2.0 | ^3.0" }, "require-dev": { - "phpunit/phpunit": "^8.0 | ^9.0", + "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0 || ^11.0", "squizlabs/php_codesniffer": "^3.6" }, "autoload": { 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}'], diff --git a/tests/Test/TestLoggerTest.php b/tests/Test/TestLoggerTest.php index 986b0d7..05cc47a 100644 --- a/tests/Test/TestLoggerTest.php +++ b/tests/Test/TestLoggerTest.php @@ -79,7 +79,7 @@ public function testHasRecord(string $level): void $this->assertTrue(call_user_func([$logger, $levelMethod.'ThatPasses'], fn (array $record) => $record['message'] === $level.' Message'), $levelMethod.'ThatMatches'); } - public function getLogLevels(): array + public static function getLogLevels(): array { return [ ['debug'],