Closed sebastianbergmann closed 4 years ago
Awesome preparations done so head of time! Although I'm not involved, I did enjoy the level of enthusiasm and professionalism how things are done and looking forward.
Thank you all ❤️
not all PHPUnit's dependencies actually allow PHP 8 yet
Prophecy doesn't allow PHP 8 yet. It requires ^7.2
still.
Maybe in the future prophecy could be considered to be an optional dependency? Currently there are too many hoops to jump through to test code with multiple versions of PHP if testing with PHP 8 is included. Not a biggie if testing only with PHP 8.
@tuupola removing support for Prophecy in core is planned for the future, which is why phpspec/prophecy-phpunit
was resurrected.
Ran into the same issue today with https://travis-ci.org/github/milesj/decoda/jobs/728420774 and PHP8 being untestable.
//EDIT: using --ignore-platform-reqs works as a workaround for now.
Prophecy 1.12.0
was just tagged which allows php 8.0
Composer update on Mac Osx Big Sur
Problem 1
PHPUnit 9 is being tested against nightly builds of PHP 8 for quite a while and it is safe to say that -- as of right now -- PHPUnit 9 works on PHP 8. While some things might still change until PHP 8.0.0 is released, it is time to make the support for PHP 8 official.
However, this is not as simple as applying
to this repository for
phpunit/phpunit
.PHP 8.0 also needs to be allowed in the
composer.json
files of PHPUnit's dependencies:phpunit/php-code-coverage
phpunit/php-file-iterator
phpunit/php-invoker
phpunit/php-text-template
phpunit/php-timer
phpunit/php-token-stream
sebastian/code-unit
sebastian/code-unit-reverse-lookup
sebastian/comparator
sebastian/diff
sebastian/environment
sebastian/exporter
sebastian/global-state
sebastian/object-enumerator
sebastian/object-reflector
sebastian/recursion-context
sebastian/resource-operations
sebastian/type
sebastian/version
doctrine/instantiator
(has"php": "^7.1 || ^8.0"
in 1.3.1)symfony/polyfill-ctype
(has"php": ">=5.3.3"
in 1.17.1)myclabs/deep-copy
CC @mnapoli and @theofidryphar-io/manifest
CC @theseerphar-io/version
CC @theseerphpdocumentor/reflection-common
CC @jaapio and @mvrielphpdocumentor/reflection-docblock
CC @jaapio and @mvrielphpdocumentor/type-resolver
CC @jaapio and @mvrielphpspec/prophecy-phpunit
CC @ciaranmcnulty and @stofphpspec/prophecy
CC @ciaranmcnulty and @stoftheseer/tokenizer
CC @theseerwebmozart/assert
CC @webmozartOf course, I will take care of all dependencies that live in the
sebastian/
andphpunit/
namespaces myself.