From 24e3c27f2a85ddb10ff37f832905743378ae9948 Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Mon, 20 Jan 2025 14:55:39 +0100 Subject: [PATCH 1/2] Fix php_user_filter::filter interface: allow null value for --- UPGRADE.md | 5 +++++ src/Encrypter/OpenSslEncrypter.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/UPGRADE.md b/UPGRADE.md index 453dc3ee..93548d64 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1 +1,6 @@ # Upgrade Notes + +### 1.1.1 +Fix php_user_filter::filter interface: allow null value for `$consumed` +### 1.1.0 +Upgrade License diff --git a/src/Encrypter/OpenSslEncrypter.php b/src/Encrypter/OpenSslEncrypter.php index cc91a868..8fbb22c5 100644 --- a/src/Encrypter/OpenSslEncrypter.php +++ b/src/Encrypter/OpenSslEncrypter.php @@ -189,7 +189,7 @@ private function decryptClosingData(): mixed return $processed; } - private function handleIv($in, $out, int &$consumed): void + private function handleIv($in, $out, ?int &$consumed): void { if ($this->iv !== null) { return; From 5081c30efa71d616599d968a731a998c3c7475b0 Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Mon, 20 Jan 2025 15:06:24 +0100 Subject: [PATCH 2/2] Fix php_user_filter::filter interface: allow null value for --- phpstan.neon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index 652ce700..a3aa24a3 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,3 +7,6 @@ parameters: symfony: containerXmlPath: %currentWorkingDirectory%/var/cache/test/TestKernelTestDebugContainer.xml constantHassers: false + ignoreErrors: + - '#Call to static method buildForEntity\(\) on an unknown class I18nBundle\\Builder\\RouteParameterBuilder\.#' + - '#Parameter \&\$consumed by-ref type of method SecureStorageBundle\\Encrypter\\OpenSslEncrypter::filter\(\) expects int, int\|null given\.#' \ No newline at end of file