Problem/Motivation
Found working on #3245770: Create a service to composer install via package_manager from Automatic Updates
Drupal 9.4 and above require php 7.4 for new installs and recommends php 7.4
AutoUpdates requires 7.4 #3293866: Update minimum PHP version requirement for Automatic Updates to 7.4
So to use Automatic Updates's sub module you would need to require php 7.4.
You could probably just change the automated testing to use 7.4 instead of 7.3 on drupalCi
Proposed resolution
- Run automated tests on 7.4 instead of 7.3
- Require PHP 7.4 in the Composer json
I think you could get with just 1) as long you just add drupal/automatic_updates to require-dev for testing. Because maybe some users of Project Browser just want browsing and not the actual composer installs and a lot of hosting won't support installs on Production anyways.
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
Issue fork project_browser-3299285
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
bnjmnmI'm fine requiring a minimum of 7.4. 7.3 isn't supported anymore and PB won't get into core until 10.0 at the earliest, which doesn't support 7.3 at all. If there's agreement, the MR that bumps the requirement up is there waiting for ya.
Comment #5
tedbowComment #6
fjgarlin commentedHappy with the change. It makes sense to require at least 7.4. We cannot use some of the new features of PHP7.4+ as tests fail, like in this issue or here #3296494: Dynamic properties deprecated in PHP8.2, where I was trying to add a type to a public class property (ie:
public bool $is_covered;).I'd mark it RTBC but I don't know what needs to change for tests to be set as default to 7.4 in the CI tool.
Comment #7
bnjmnmLooks like the default test version is in the project config on D.O.
I made that change and based on 👆 it looks like the default PHP for testing is now 7.4.
Comment #8
fjgarlin commentedIn that case and based on the green pass, marking this as RTBC.
I guess this is now affecting all issues (testing on 7.4) even if this is not yet merged, which I guess should be ok if we merge it soon :-)
Comment #11
tim.plunkettMerged, thanks!