diff -Nru php-klogger-1.2.1/debian/changelog php-klogger-1.2.1/debian/changelog --- php-klogger-1.2.1/debian/changelog 2019-10-16 22:53:52.000000000 +0000 +++ php-klogger-1.2.1/debian/changelog 2022-04-04 14:39:42.000000000 +0000 @@ -1,3 +1,16 @@ +php-klogger (1.2.1-4ubuntu1) jammy; urgency=medium + + * d/p/0005-psr-logger-compliance.patch: comply with php-psr-log 3. + (LP: #1967796) + + -- Athos Ribeiro Mon, 04 Apr 2022 11:39:42 -0300 + +php-klogger (1.2.1-4build1) jammy; urgency=medium + + * No change rebuild for php-psr-log 3 + + -- Bryce Harrington Fri, 25 Feb 2022 06:27:22 +0000 + php-klogger (1.2.1-4) unstable; urgency=medium * d/control: Move to Debian PHP PEAR Maintainers diff -Nru php-klogger-1.2.1/debian/control php-klogger-1.2.1/debian/control --- php-klogger-1.2.1/debian/control 2019-10-16 22:53:52.000000000 +0000 +++ php-klogger-1.2.1/debian/control 2022-02-25 06:26:58.000000000 +0000 @@ -1,7 +1,8 @@ Source: php-klogger Section: php Priority: optional -Maintainer: Debian PHP PEAR Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian PHP PEAR Maintainers Uploaders: James Valleroy , Sunil Mohan Adapa diff -Nru php-klogger-1.2.1/debian/patches/0005-psr-logger-compliance.patch php-klogger-1.2.1/debian/patches/0005-psr-logger-compliance.patch --- php-klogger-1.2.1/debian/patches/0005-psr-logger-compliance.patch 1970-01-01 00:00:00.000000000 +0000 +++ php-klogger-1.2.1/debian/patches/0005-psr-logger-compliance.patch 2022-04-04 14:39:42.000000000 +0000 @@ -0,0 +1,34 @@ +Description: Comply with psr/log 3 +Author: Athos Ribeiro +Forwarded: no +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/php-klogger/+bug/1967796 +Last-Update: 2022-04-04 + +--- a/src/Logger.php ++++ b/src/Logger.php +@@ -204,11 +204,11 @@ + * Logs with an arbitrary level. + * + * @param mixed $level +- * @param string $message ++ * @param Stringable|string $message + * @param array $context +- * @return null ++ * @return void + */ +- public function log($level, $message, array $context = array()) ++ public function log($level, \Stringable|string $message, array $context = array()): void + { + if ($this->logLevels[$this->logLevelThreshold] < $this->logLevels[$level]) { + return; +--- a/composer.json ++++ b/composer.json +@@ -5,7 +5,7 @@ + "keywords": ["logging"], + "require": { + "php": ">=5.3", +- "psr/log": "^1.0.0" ++ "psr/log": "^3.0.0" + }, + "require-dev": { + "phpunit/phpunit": "4.0.*" diff -Nru php-klogger-1.2.1/debian/patches/series php-klogger-1.2.1/debian/patches/series --- php-klogger-1.2.1/debian/patches/series 2019-10-16 22:53:52.000000000 +0000 +++ php-klogger-1.2.1/debian/patches/series 2022-04-04 13:27:32.000000000 +0000 @@ -2,3 +2,4 @@ 0002-Fix-test-loop.patch 0003-Support-phpunit-v6.patch 0004-Support-phpunit-v8.patch +0005-psr-logger-compliance.patch