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

Add support for PHP 8 + PHPUnit 9 #295

Merged
merged 4 commits into from Sep 25, 2020

Conversation

sanmai
Copy link
Contributor

@sanmai sanmai commented Sep 25, 2020

This PR

Replace #293
Fix #281

@@ -17,6 +17,8 @@ jobs:
env: SYMFONY_VERSION="^5.0" MIN_STABILITY=dev
- php: 7.4
env: CHECKS=yes
- php: nightly
env: 'COMPOSER_FLAGS="--ignore-platform-reqs"'
Copy link
Member

Choose a reason for hiding this comment

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

open question: what is failing without it ?

Copy link
Contributor Author

@sanmai sanmai Sep 25, 2020

Choose a reason for hiding this comment

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

phpunit/phpunit 9.3.9 requires phpspec/prophecy, but it is not installable on PHP 8.

Here's a relevant discussion with the man himself: phpspec/prophecy#491 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

ack. thanks.

@@ -41,7 +41,8 @@
"symfony/yaml": "^2.0.5 || ^3.0 || ^4.0 || ^5.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0 || ^7.0"
"phpunit/phpunit": "^4.8.35 || ^5.4.3 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"sanmai/phpunit-legacy-adapter": "^6.1 || ^8.0"
Copy link
Member

Choose a reason for hiding this comment

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

i do understand the need and the approach.
I'm still crying internally.

This comment was marked as resolved.

This comment was marked as resolved.

Copy link
Member

Choose a reason for hiding this comment

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

no worry, all good

@keradus keradus merged commit 32094f4 into php-coveralls:2.3 Sep 25, 2020
@keradus
Copy link
Member

keradus commented Sep 25, 2020

thanks @sanmai

@sanmai sanmai deleted the pr/2020-09/phpunit9 branch September 25, 2020 07:21
@keradus keradus mentioned this pull request Sep 25, 2020
@BenMorel
Copy link
Contributor

Thank you, @sanmai! 👍

@keradus Are you planning on making a release just for this PR, by any chance?

@sanmai
Copy link
Contributor Author

sanmai commented Sep 27, 2020

v2.3.1 would have been beautiful.

@keradus
Copy link
Member

keradus commented Sep 30, 2020

i wanna see can we do #289 in the same release, first. thanks for understanding

@BenMorel
Copy link
Contributor

BenMorel commented Oct 5, 2020

Thank you for 2.4.0! 🎉

reececomo pushed a commit to reececomo/php-coveralls that referenced this pull request Jan 15, 2021
* Update .travis.yml to include PHP 7.4 (php-coveralls#283)

* Fix incorrect version in README (php-coveralls#286)

* Add Guzzle 7 support (php-coveralls#288)

* Add Guzzle 7 support

* Update composer.json

Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>

* DX: Configurator - reduce cyclomatic complexity (php-coveralls#291)

* CI: reduce amount of jobs (php-coveralls#292)

* Allow to specify endpoint in arguments (php-coveralls#290)

* Allow to specify endpoint in arguments

* use new helper

Co-authored-by: Dariusz Ruminski <dariusz.ruminski@gmail.com>

* DX: Allow PHPUnit 7 (php-coveralls#294)

* Added COVERALLS_PARALLEL support and Configured CI_BUILD_NUMBER for Travis CI (php-coveralls#279)

* updated to detect COVERALLS_PARALLEL env var

* added CI_BUILD_NUMBER into Configuration

* updated README

* fixed tests

* Update RequirementsNotSatisfiedException.php

* fix CS

* fix checking of required fields + tests

* add missing class property

Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>

* Prepare v2.3.0

* Add support for PHP 8 + PHPUnit 9 (php-coveralls#295)

* Add support for PHP 8 + PHPUnit 9

* Add PHPUnit 4.8 workarounds

* Do --ignore-platform-reqs on PHP 8

* Skip failing test due to missing get_debug_type()

* Add insecure option (php-coveralls#289)

* Add Github Actions and COVERALLS_FLAG_NAME support (php-coveralls#296)

Co-authored-by: Smolevich <smolevich90@gmail.com>
Co-authored-by: Simon Podlipsky <simon@podlipsky.net>

* DX: .gitignore cache PHPUnit (php-coveralls#297)

* Prepare v2.4.0

* Fix support of branch name with hyphen and "(no branch)" (php-coveralls#298)

* Fix no-branch on CI error

* fix support of dash in branch names

* little tests cleanup

* Prepare v2.4.1

* Correct spelling error in Github (php-coveralls#299)

* Add COVERALLS_REPO_TOKEN to error message when run on Github Action (php-coveralls#302)

* Update README.md (php-coveralls#303)

Version 2.4.0 does not have a phar file, change to v2.4.2

* Add file missing for PHP 8 (php-coveralls#308)

fixes php-coveralls#307

* Prepare v2.4.3

* Update CiEnvVarsCollector.php

Re-arrange methods to avoid merge conflicts with upstream

* Update JsonFileTest.php

Remove duplicate method `shouldSetParallel()`

* Update JsonFile.php

Remove duplicate property `$parallel`

* Update JsonFile.php

Remove duplicate method `setParallel()`

* Update CiEnvVarsCollector.php

Fix code style

* Update JsonFileTest.php

Fix broken test

Co-authored-by: Alexey Kopytko <alexey@kopytko.com>
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: Dmitry Ivanov <dmitry.g.ivanov@gmail.com>
Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
Co-authored-by: Dmitry Shemin <shemindmitry@gmail.com>
Co-authored-by: Yih Yang <yyngo788n88@hotmail.com>
Co-authored-by: Twin Huang <twinhuang@qq.com>
Co-authored-by: Smolevich <smolevich90@gmail.com>
Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
Co-authored-by: Danny van der Sluijs <danny.vandersluijs@icloud.com>
Co-authored-by: Oanh Nguyen <oanhnn.bk@gmail.com>
Co-authored-by: Jimmy Cleuren <jimmy.cleuren@gmail.com>
Co-authored-by: Christian Raue <christian.raue@gmail.com>
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.

PHP 8 Coverage
3 participants