PHPCompatibility / PHPCompatibilityWP

PHPCompatibility ruleset for WordPress projects
GNU Lesser General Public License v3.0
179 stars 11 forks source link

Allow use of PHPCompatibilty:dev-develop #40

Closed GaryJones closed 2 years ago

GaryJones commented 2 years ago

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)

jrfnl commented 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.

GaryJones commented 2 years ago

I thought you had too, but I couldn't remember it :-)

Thank you!

jrfnl commented 2 years ago

@GaryJones No worries.

daankortenbach commented 11 months ago

tnx, needed this, happy ny