Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Conversation

@martin-georgiev
Copy link
Member

Extract the data serialization into trait so it can be potentially reused. This bumps the minimum supported PHP version to 5.4

…tring.

Extract tha data serialization into trait so it can be potentially reused. This bumps the minimum supported PHP version to 5.4
$data = '';
try {
$data = serialize($nonObject);
} catch (\Throwable $t) {

Choose a reason for hiding this comment

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

Is this compatible with php 5.4?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this will work in the old-fashioned way where line 85 errors and nothing is caught.
This amendment doesn't change the existing behaviour on PHP 5.x and improves only when running on 7.x

@ppamment ppamment merged commit eb0f16f into master Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants