Is this new? I searched for "PHP 8.4" and "symfony/css-selector" in the issues and found no results. Which seemed odd.
Problem/Motivation
An upgrade to Drupal 10.6.7 pulls symfony/css-selector v8.0.8, requiring php (>=8.4).
The official system requirements list Drupal 10 support for PHP 8.1 - 8.4.
Which means you can't run 10.6.7 on anything less than PHP 8.4?
Steps to reproduce
Upgrade to Drupal 10.6.7 on a server running PHP <8.4. This throws a composer error.
Comments
Comment #2
avpadernoDrupal 10.6.x is compatible with any PHP version between 8.1 and 8.4, which means no deprecation notices are thrown by Drupal 10.6.x when using one of those PHP versions. It does not mean Drupal 10.6.x requires PHP 8.2 (or PHP 8.4).
A note says Drupal 10.6 requires at least PHP 8.1, which is true, since Drupal 10.6.0 requires PHP 8.1. It does not mean that Drupal core dependencies for Drupal 10.6.7 could not require any higher PHP version (although I guess they should not require PHP 8.5, for example).
A note could be added in PHP requirements. This is not a bug in Drupal core code, though; it is documentation that needs to be updated, if a note is thought to be added.
Comment #3
cilefen commentedThis can happen if you resolve dependencies on a platform with a different version of PHP than the deploy platform. The Composer platform configuration solves this issue. It’s nothing to do with Drupal.
Comment #4
longwaveDrupal 10.6 doesn't require symfony/css-selector, it's only a development dependency (and transient dependency for Mink), and that allows ^6.4:
What is the output of that
composer whycommand on your setup?