Closed GaryJones closed 2 years ago
@GaryJones I have a feeling I already answered this for you before ?
Either way, the answer hasn't changed:
composer config minimum-stability dev
composer require --dev phpcompatibility/php-compatibilitywp
composer require --dev phpcompatibility/php-compatibility:"dev-develop as 9.99.99"
The dev-develop as 9.99.99
aliases the develop
branch of PHPCompatibility to a 9.x
version which is within the allowed range for PHPCompatibilityWP.
We ourselves use the same principle to already run the tests against PHPCompatibility dev-develop
:
Note: once PHPCompatibility 10.0.0 has come out, this repo will get a 3.0.0 release based on PHPCompatibility 10.0.0.
I thought you had too, but I couldn't remember it :-)
Thank you!
@GaryJones No worries.
tnx, needed this, happy ny
Installing the master branch / latest release of PHPCompatibilityWP will use PHPCompatibility
^9.0
.It would be useful to be able to install a (temporary) version of PHPCompatibilityWP that would use the
dev-develop
branch of PHPComapatibility, so that sniffs with some PHP 8 focus can be used.What's the best way of providing that? (Either as a new branch here, or instructions in the readme on how users can adapt their project / global install)