Currently when trying to install the latest PHPUnit (removed not related lines):
$ composer require --dev phpunit/phpunit:^11.3 -W
// ...
Your requirements could not be resolved to an installable set of packages.
// ...
Problem 2
- phpunit/phpunit 11.3.0 requires phpunit/php-code-coverage ^11.0.5 -> found phpunit/php-code-coverage[11.0.5] but these were not loaded, likely because it conflicts with another require.
// ...
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Currently when trying to install the latest PHPUnit (removed not related lines):
Following the error:
I believe
^
was a mistake, not intentional, in the first place.