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 #81

Merged
merged 3 commits into from
Oct 13, 2021
Merged

Conversation

weierophinney
Copy link
Member

This patch provides support for PHP 8.1, via the following changes:

  • It adds ~8.1.0 to the list of allowed PHP versions.
  • It updates dependencies to versions known to work with PHP 8.1 where possible.
  • It changes how the package replaces zend-mvc:
    • It renames the "replace" section of the package to "conflict".
    • It changes the "zend-mvc" constraint in that section to "*".
    • It removes the dependency on laminas-zendframework-bridge.
  • It updates the PHPUnit configuration to the latest schema, and toggles on the flag to throw exceptions for deprecations.
  • It tells CI to ignore the platform PHP requirement when running under PHP 8.1 (due to laminas-psr7bridge not yet supporting PHP 8.1 officially).

- Add `~8.1.0` to list of allowed PHP versions
- Update dependencies to constraints known to work with PHP 8.1 where possible
- Change how the package replaces zend-mvc:
  - Rename "replace" section to "conflict"
  - Change "zend-mvc" constraint in that section to "*"
  - Remove "laminas-zend-framework-bridge" as a dependency

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Also enables the flag to throw exceptions for deprecrations, which now defaults to off since 9.5.10; we want the old behavior so we can detect deprecations early.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Required, as the laminas-psr7bridge does not yet support 8.1 officially.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney added this to the 3.3.0 milestone Oct 13, 2021
},
"require-dev": {
"http-interop/http-middleware": "^0.4.1",
"laminas/laminas-coding-standard": "^1.0.0",
"laminas/laminas-json": "^2.6.1 || ^3.0",
"laminas/laminas-json": "^3.3",
Copy link
Member Author

Choose a reason for hiding this comment

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

This one is fine, as the functionality used is identical; users can safely update to 3.3 from 2.6.

@Xerkus Xerkus merged commit 215d0ff into laminas:3.3.x Oct 13, 2021
@weierophinney weierophinney deleted the feature/php-8.1-support branch October 13, 2021 18:00
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.

2 participants