Skip to main content

Module problem

Module problem 

Source
Expand description

Composer’s explanations of an unsolvable set: port of SolverProblemsException::getPrettyString, Problem::getPrettyString (with getMissingPackageReason, getPackageList, formatDeduplicatedRules…) and Rule::getPrettyString (docs/reference/resolver/). The text is Composer’s --no-ansi rendering: the output styles (<error>, <warning>, <info>, <comment>, <href=…>) are stripped, any other angle-bracket text is kept verbatim.

The repository lookups of the reference (RepositorySet::findPackages, getProviders) load metadata, hence the mutable arena; the pool must be the one the solver ran on (removed versions, policy removals).

Structs§

MessageContext
Everything the messages read.
PrettyConstraint
A constraint with its pretty string (getPrettyString).

Functions§

php_string_cmp
PHP 8 <=> on strings: two numeric strings compare as numbers.
pretty_string
SolverProblemsException::getPrettyString(..., $isDevExtraction): the numbered problems, deduplicated, then the hints.
strip_output_styles
Symfony’s OutputFormatter without decoration: the known styles and <href=…> disappear, everything else (<https://…>) is printed as is.