phpspec / prophecy

Highly opinionated mocking framework for PHP 5.3+
MIT License
8.53k stars 242 forks source link

PHP 8.1 support / composer #531

Closed alecpl closed 3 years ago

alecpl commented 3 years ago
- phpunit/phpunit[9.4.1, ..., 9.5.7] require phpspec/prophecy ^1.12.1 -> satisfiable by phpspec/prophecy[1.12.1, 1.12.2, 1.13.0].
...
- phpspec/prophecy[1.12.0, ..., 1.13.0] require php ^7.2 || ~8.0, <8.1 -> your php version (8.1.0-dev) does not satisfy that requirement.

It would be nice if we could test our code before the 8.1.0 is released.

BenMorel commented 3 years ago

+1. This library being a dependency of PHPUnit, most open-source libraries can't be tested on PHP 8.1 before Prophecy is declared compatible.

Now that PHP 8.1 has entered beta, I'm eager to test my libraries against it.

Looking forward to #533 being merged & released!

chris-doehring commented 3 years ago

I suggest to reopen this issue since there is no php 8.1 release, yet. For those who want to know about the current status:

https://github.com/phpspec/prophecy/pull/533#issuecomment-895854748

I've added some issues for things we'll need to check on PHP 8.1

https://github.com/phpspec/prophecy/issues?q=is%3Aopen+is%3Aissue+label%3APHP8.1

Any extra issues people can think of, please raise them