Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to support PHP 8.1 #13

Merged
merged 10 commits into from
Oct 24, 2021
Merged

Update to support PHP 8.1 #13

merged 10 commits into from
Oct 24, 2021

Conversation

pascalheidmann
Copy link

@pascalheidmann pascalheidmann commented Oct 21, 2021

Q A
Documentation yes
Bugfix no
BC Break no
New Feature no
RFC no
QA yes

Description

With this PR laminas/laminas-serializer runs under PHP 8.1.
It updates several dependencies to allow compatibility especially with laminas/laminas-coding-style. This results in quite a few changes code style improvements and better code quality.

As this PR also adds return types & type hints to several classes this might be considered as a breaking change. Those changes are also listed in the newly added CHANGELOG.md.
BCs like return types & type hints for library sources are not part anymore (I left those in tests as those shouldn't be a concern of changes of signatures).

Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
…p math extension found

Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
src/AbstractSerializer.php Outdated Show resolved Hide resolved
src/Adapter/JsonOptions.php Outdated Show resolved Hide resolved
src/Adapter/PythonPickle.php Outdated Show resolved Hide resolved
@froschdesign
Copy link
Member

@pascalheidmann
Thank you for your contribution!

This package is security-only maintenance mode therefore the support for PHP 8.1 is good, but any breaking changes must be omitted.
Thanks in advance! 👍

Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
composer.lock Outdated Show resolved Hide resolved
src/Adapter/PhpSerialize.php Outdated Show resolved Hide resolved
src/Adapter/PythonPickle.php Show resolved Hide resolved
src/AdapterPluginManager.php Outdated Show resolved Hide resolved
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Signed-off-by: Pascal Heidmann <pascal.heidmann@check24.de>
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @pascalheidmann!

@Ocramius Ocramius self-assigned this Oct 24, 2021
@Ocramius Ocramius added this to the 2.11.0 milestone Oct 24, 2021
@Ocramius Ocramius merged commit a76e3a3 into laminas:2.11.x Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants