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

Run CI on PHP 8.3 and 8.4 #176

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Run CI on PHP 8.3 and 8.4 #176

merged 2 commits into from
Sep 23, 2024

Conversation

GrahamCampbell
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets partially #175
Documentation -
License MIT

What's in this PR?

Run the CI on both PP 8.3 and 8.4.

Why?

Validates compatibility with those PHP versions.

Example Usage

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

To Do

  • If the PR is not complete but you want to discuss the approach, list what remains to be done here

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks!

@@ -9,6 +9,7 @@
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'trailing_comma_in_multiline' => false,
Copy link
Contributor

Choose a reason for hiding this comment

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

i would prefer to fix this rather than diverge from the symfony ruleset.

but as you mentioned in php-http/client-common#247 it would make sense to pin the cs fixer to a specific version to avoid random unrelated cs failures in merge requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to do this because the syntax is not compatible with PHP 7.

@@ -25,6 +25,10 @@ jobs:
tools: composer:v2
coverage: none

- name: Emulate PHP 8.3
run: composer config platform.php 8.3.999
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this? do we have dependencies that limit to php 8.3 and don't install with 8.4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

phpspec disallows PHP 8.4

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks!

@dbu dbu merged commit 37819ce into php-http:2.x Sep 23, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants