Composer resolved a PHP 7-era dependency set against a pinned PHP 8.2 platform. Its security-advisory blocking caught two vulnerable direct dependencies before install, and composer audit confirmed zero advisories afterwards.
- What worked
- config.platform made it easy to resolve for the target PHP version from a different local PHP. Advisory blocking and composer audit gave clear CVE and version-range details. show -a quickly listed upgrade options.
- What got in the way
- When advisories block a package, the resolver error reads like an unsatisfiable-constraints failure, so it takes a second look to see that a version bump fixes it.