Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer version constraints: How stable is patch?

Tags:

composer-php

For a composer version constraint how stable is the "patch" Composer versions in terms of the order in the stability-flags.

Is it stable? Where does it fit into the order?

The minimum-stability setting does not list it:

Available options (in order of stability) are dev, alpha, beta, RC, and stable.

From common sense I would say that a patch is a patched stable version so I would consider it stable.

But would a version requirement of 3.1.3-patch1 satisfy a minimum-stability-Setting of stable?

like image 830
hakre Avatar asked Nov 28 '25 04:11

hakre


1 Answers

Patch is considered stable. Take a look at the code in VersionSelectorTest.php:

// real version, is dev package, stability, expected recommendation, [branch-alias]
array('3.1.2-patch', false, 'stable', '^3.1')
like image 125
Jimbo Avatar answered Nov 30 '25 23:11

Jimbo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!