Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Upgrade to PHP 8#21

Open
wnnawalaniec wants to merge 1 commit intojeskew:masterfrom
wnnawalaniec:php8
Open

Upgrade to PHP 8#21
wnnawalaniec wants to merge 1 commit intojeskew:masterfrom
wnnawalaniec:php8

Conversation

@wnnawalaniec
Copy link
Copy Markdown

@wnnawalaniec wnnawalaniec commented Aug 14, 2024

I've upgraded code and dependencies to PHP 8.1+.
I decided to not care about PHP 7 as it is
unmaintained... So changes are not bc.
Although interfaces hasn't changed that much, I only added types where they were missing.

After switch to PHP 8, deprecation errors occurred because of StreamDecoratorTrait dynamic property declaration and I don't see any good solution to fix them for now. So I added #[\AllowDynamicProperties] to ignore them. They are not breaking anything and if they will in the future, there are tests covering it.

I've upgraded code and dependencies to PHP 8.1+.
I decided to don't care about PHP 7 as it is
unmaintained anymore, so changes are not bc.
Although interfaces hasn't changed that much, I only
added types where they were missing.

I'm not sure to one change I've done to AesGcmEncryptingStream.php and AesGcmDecryptingStream.php.
After switch to PHP 8, deprecation errors occurred
because of StreamDecoratorTrait dynamic property declaration and I don't see any good solution to fix them for now.
So I added #[\AllowDynamicProperties] to ignore them.
They are not breaking anything and if there were in the future, there are tests covering it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant