Skip to content

Allow PHP 8 #13

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

Merged
merged 3 commits into from
Nov 30, 2020
Merged

Allow PHP 8 #13

merged 3 commits into from
Nov 30, 2020

Conversation

ddeboer
Copy link
Contributor

@ddeboer ddeboer commented Nov 27, 2020

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

What's in this PR?

Allow this package to be installed on PHP 8.

Checklist

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

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.

if the ci agrees, this looks good to merge 👍

@veewee veewee mentioned this pull request Nov 27, 2020
2 tasks
@@ -10,6 +10,7 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0snapshot
Copy link

@veewee veewee Nov 27, 2020

Choose a reason for hiding this comment

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

Php-cs-fixer does not suppor PHP8 yet, but you can run composer with --ignore-platform-req=php

And add this env var to run php-cs-fixer:

PHP_CS_FIXER_IGNORE_ENV: 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the dep for now, as suggested by @Nyholm.

@Nyholm
Copy link
Member

Nyholm commented Nov 27, 2020

Let's remove php-cs-fixer from composer.json and use a github action or phar instead.

@ddeboer
Copy link
Contributor Author

ddeboer commented Nov 30, 2020

What about StyleCI: does that already validate against PHPCS?

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

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

Thank you

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.

looks good 👍

@dbu dbu merged commit 83a383b into php-http:master Nov 30, 2020
@ddeboer ddeboer deleted the php8 branch November 30, 2020 09:10
@dbu
Copy link
Contributor

dbu commented Nov 30, 2020

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.

4 participants