Skip to main content

Module constraint

Module constraint 

Source
Expand description

Port of Composer\Semver\Constraint\* and VersionParser::parseConstraints (docs/reference/resolver/semver-Constraint.php, semver-MultiConstraint.php, semver-Bound.php, semver-VersionParser.php). A constraint is a tree: leaf (operator, normalized version), conjunction/disjunction, match-all, match-none. matches reproduces Constraint::matchSpecific (and thus CompilingMatcher::match, which is merely a compiled form of it).

Structs§

Bound
Bound.
ParsedConstraint
A parsed constraint with its original pretty string (getPrettyString).

Enums§

Constraint
Op

Functions§

parse_constraints
VersionParser::parseConstraints, memoized by text (the equivalent of the $linkCache of ArrayLoader::loadPackages, at process scope: same input -> same result, the parser is pure).