Skip to content

Commit

Permalink
Fix php_user_filter::filter interface: allow null value for `$consume…
Browse files Browse the repository at this point in the history
…d` (#14)
  • Loading branch information
solverat authored Jan 20, 2025
1 parent d89c0b9 commit 83ef0c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Upgrade Notes

### 1.1.1
Fix php_user_filter::filter interface: allow null value for `$consumed`
### 1.1.0
Upgrade License
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\.#'
2 changes: 1 addition & 1 deletion src/Encrypter/OpenSslEncrypter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83ef0c0

Please sign in to comment.