Open jimbonator opened 2 years ago
There is no point to claim that AspectMock support PHP 8, if underlying library doesn't support it.
I've submitted a patch to goaop/parser-reflection
: https://github.com/goaop/parser-reflection/pull/121
But it is still in open status
The parser-reflection
ticket is closed now.
The message in the README on https://github.com/goaop/parser-reflection suggests that library is deprecated, but there have been many updates in the last few months. The dev versions works in one of my projects on PHP 8.2.
I've submitted a PR for preliminary PHP 8.2 support: https://github.com/Codeception/AspectMock/pull/210
AspectMock 4.1.1 won't install cleanly under PHP 8 with Composer:
The only way I can get it to install without errors is to use Composer's
--ignore-platform-reqs
option.Although there are problems with
goaop/parser-reflection
under PHP 8 (see https://github.com/goaop/framework/issues/466), I believe AM itself will work without issue under the newer PHP versions (other than the problem I reported in #201).I believe changing this
composer.json
line would be sufficient: