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

Merged
merged 3 commits into from
Sep 2, 2021

Conversation

weierophinney
Copy link
Member

@weierophinney weierophinney commented Sep 2, 2021

This patch provides PHP 8.1 support, by making the following changes:

  • Adds 8.1 to the PHP constraint
  • Changes how we replace zend-escaper
    • Renames "replace" to "conflict" in composer.json, and sets the constraint for "zend-escaper" to "*"
    • Removes laminas-zendframework-bridge requirement
  • Adds Laminas CI configuration to ignore PHP platform req on PHP 8.1 builds

Fixes #13

- Adds 8.1 to the PHP constraint
- Changes how we replace zend-escaper
  - Renames "replace" to "conflict" in `composer.json`, and sets the constraint for "zend-escaper" to "*"
  - Removes laminas-zendframework-bridge requirement
- Adds Laminas CI configuration to ignore PHP platform req on PHP 8.1 builds

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney
Copy link
Member Author

This patch also resolves #13

@weierophinney weierophinney added this to the 2.9.0 milestone Sep 2, 2021
@Ocramius Ocramius self-assigned this Sep 2, 2021
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.

Psalm seems to complain in this one:


Error: Syntax error, unexpected '=' on line 125

In part to ensure that psalm is running with the same version on the CI platform.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Syntax flagged is valid under PHP 8, which is the only time the symfony/polyfill-mbstring bootstrap80.php file should be loaded.

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney
Copy link
Member Author

Psalm seems to complain in this one:

Yep - it's a PHP 8-specific symfony/polyfill-mbstring file; it should be excluded from our scans (as it's in the vendor tree), but for some reason is still showing. I updated the baseline so that it gets ignored, and tests are now green.

@Ocramius Ocramius merged commit 891ad70 into laminas:2.9.x Sep 2, 2021
@weierophinney weierophinney deleted the feature/php-8.1-support branch September 2, 2021 17:16
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