diff --git a/composer.json b/composer.json index 9ec70a4..d90936e 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "ext-pdo": "*", "dragonmantank/cron-expression": "^3.3.2", "ingenerator/php-utils": "^2.0", - "psr/log": "^1.0 || ^2.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", "symfony/lock": "^5.4 || ^6.0 || ^7.0", "symfony/process": "^5.4 || ^6.0 || ^7.0" }, diff --git a/test/integration/CronExecutionIntegrationTest.php b/test/integration/CronExecutionIntegrationTest.php index 0320ddc..755a524 100644 --- a/test/integration/CronExecutionIntegrationTest.php +++ b/test/integration/CronExecutionIntegrationTest.php @@ -253,7 +253,7 @@ protected function setUp(): void $this->output_stream = fopen('php://memory', 'rw'); $this->clock = new RealtimeClock(); $this->logger = new class extends AbstractLogger { - public function log($level, $message, array $context = []) + public function log($level, $message, array $context = []): void { echo sprintf('[%s] %s'.PHP_EOL, $level, $message); } diff --git a/test/integration/working_dir/factory-cronjob-runner.php b/test/integration/working_dir/factory-cronjob-runner.php index 5f24707..782f666 100644 --- a/test/integration/working_dir/factory-cronjob-runner.php +++ b/test/integration/working_dir/factory-cronjob-runner.php @@ -12,7 +12,7 @@ return new DefaultPdoCronjobRunnerFactory( DbMaintainer::makePdoConnection(), new class extends AbstractLogger { - public function log($level, $message, array $context = []) + public function log($level, $message, array $context = []): void { echo sprintf('[%s] %s'.PHP_EOL, $level, $message); } diff --git a/test/mock/Logging/SpyingLoggerStub.php b/test/mock/Logging/SpyingLoggerStub.php index 845f43b..04c083a 100644 --- a/test/mock/Logging/SpyingLoggerStub.php +++ b/test/mock/Logging/SpyingLoggerStub.php @@ -11,7 +11,7 @@ class SpyingLoggerStub extends AbstractLogger { protected $logs = []; - public function log($level, $message, array $context = []) + public function log($level, $message, array $context = []): void { $this->logs[] = ['level' => $level, 'message' => $message, 'context' => $context]; }