Do not run the Max PHP jobs when the PHP version is the same as 'current'
Problem/Motivation
To save resources, there is no reason to run the "Max PHP" variants when the PHP version is no higher than the "current" php version. This is currently the situation with D11 being the new "current" core version. In the variables file we have:
# The minimum supported version of PHP for the current stable version of Drupal.
CORE_PHP_MIN: "8.3"
# The maximum/latest supported version of PHP for the current stable version of Drupal.
CORE_PHP_MAX: "8.3"
PHP8.3 is the minimum required, and there is no Core version that supports PHP8.4 yet. So the "Max PHP" variants (Composer, PHPStan, PHPUnit and Nightwatch) will run with PHP8.3 thus duplicating what the "current" varaint does, and is therefore unnecessary and a waste of resources.
This issue is a spin-off from #3483075: Update CORE_PHP_NEXT to 8.4 see comments #9-12
Proposed resolution
Add a rule to the "Max PHP" variants which says "If the php version is the same as core_php_min then do not run the job"
Remaining tasks
User interface changes
Edited by drupalbot