Skip to main content

Module intervals

Module intervals 

Source
Expand description

Port of Composer\Semver\Intervals (docs/reference/resolver/ semver-Intervals.php): a constraint becomes a list of numeric intervals [bound, bound] plus a set of branches (dev-*) that are either included or excluded; isSubsetOf, haveIntersections and compactConstraint derive from it. PoolBuilder uses it to know whether an already loaded package covers a new constraint, and to merge constraints.

Structs§

Branches
Interval
Intervals

Functions§

compact_constraint
Intervals::compactConstraint($constraint).
from_zero
generate
Intervals::get / generateIntervals.
have_intersections
Intervals::haveIntersections($a, $b).
is_subset_of
Intervals::isSubsetOf($candidate, $constraint).
until_positive_infinity