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

Provide PHP 8.1 support #20

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

weierophinney
Copy link
Contributor

This patch provides PHP 8.1 support via the following:

  • Changing the PHP ^7.3 constraint to ^7.4.
  • Adding ~8.1.0 to the list of PHP constraints.
  • Updating how the package replaces zend-problem-details:
    • Removes the dependency on laminas-zendframework-bridge
    • Converts the "replace" rule for zend-problem-details to a "conflict", and changes the constraint to "*"
  • Bumps the minimum PHPUnit version to 9.5.5.
  • Ensures "convertDeprecationsToExceptions" is enabled in the PHPUnit configuration.
  • Adds a #[ReturTypeWillChange] attribute to the CommonProblemDetailsExceptionTrait::jsonSerialize() implementation.

This patch provides PHP 8.1 support via the following:

- Changing the PHP `^7.3` constraint to `^7.4`.
- Adding `~8.1.0` to the list of PHP constraints.
- Updating how the package replaces zend-problem-details:
  - Removes the dependency on laminas-zendframework-bridge
  - Converts the "replace" rule for zend-problem-details to a "conflict", and changes the constraint to "*"
- Bumps the minimum PHPUnit version to 9.5.5.
- Ensures "convertDeprecationsToExceptions" is enabled in the PHPUnit configuration.
- Adds a `#[ReturTypeWillChange]` attribute to the `CommonProblemDetailsExceptionTrait::jsonSerialize()` implementation.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney added this to the 1.5.0 milestone Dec 1, 2021
@weierophinney weierophinney added the Enhancement New feature or request label Dec 1, 2021
@weierophinney weierophinney added this to In progress in PHP 8.1 via automation Dec 1, 2021
- Trailing whitespace
- Incorrect indentation

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney merged commit d31366c into mezzio:1.5.x Dec 1, 2021
PHP 8.1 automation moved this from In progress to Done Dec 1, 2021
@weierophinney weierophinney deleted the feature/php-8.1-support branch December 1, 2021 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
No open projects
PHP 8.1
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants