From b9042358e16748996e1844abd3194fb7375f9940 Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Sun, 8 Jun 2025 14:21:33 +1200 Subject: [PATCH] v2.5.2 add support for psr/log ^1 --- CHANGELOG.md | 3 +++ composer.lock | 2 +- src/Resque/Log.php | 3 ++- src/Resque/Resque.php | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44c37b4..f65b2b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.5.2 (2025-06-08) +- Update typing of Log() to support all psr\log versions + # 2.5.1 (2025-06-08) - Update psr/log version requirements diff --git a/composer.lock b/composer.lock index d5f144c..bb2aed1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "41f50fbbaf38787881da45b3077408fb", + "content-hash": "d8e5313006d5c73b54ee6a410b1ad016", "packages": [ { "name": "colinmollenhour/credis", diff --git a/src/Resque/Log.php b/src/Resque/Log.php index d759a0e..3756f52 100644 --- a/src/Resque/Log.php +++ b/src/Resque/Log.php @@ -25,9 +25,10 @@ class Log extends \Psr\Log\AbstractLogger * @param mixed $level PSR-3 log level constant, or equivalent string * @param string $message Message to log, may contain a { placeholder } * @param array $context Variables to replace { placeholder } + * * @return null */ - public function log($level, \Stringable|string $message, array $context = []): void + public function log($level, string|\Stringable $message, array $context = []): void { $logLevels = [ 'emergency', diff --git a/src/Resque/Resque.php b/src/Resque/Resque.php index aca7065..97d579d 100644 --- a/src/Resque/Resque.php +++ b/src/Resque/Resque.php @@ -12,7 +12,7 @@ namespace Resque; class Resque { - public const VERSION = '2.5.1'; + public const VERSION = '2.5.2'; public const DEFAULT_INTERVAL = 5;