Problem/Motivation
Currently the need to support D9 prevents us from using newer features such as object oriented hooks. It also requires us to stay PHP 7.4 compatible, which precludes us from using D8 features such as attributes.
Before making this change, I would like to confirm that there is no compelling case for keeping 9.x support. If you are still using Drupal 9, please comment below.
I believe dropping support for unsupported versions of Drupal does not require a change of major version.
Steps to reproduce
N/A
Proposed resolution
- Wait for confirmation that D9 support can be dropped.
- Drop ^9.5 from
core_version_requirementin .info.yml file. - Increase PHP requirement in composer.json from `">=7.4"` to `">=8.1"`.
Remaining tasks
Currently waiting for any objections to removing support for D9.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork scheduled_publish-3546610
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 #2
lostcarpark commentedScheduled Publish 4.1.0 has been released, and should work with Drupal 9, though it hasn't been explicitly tested against it. If there are any security or bugfixes against the 4.1 branch, they will continue to support D9.
However, new features will be developed against the 4.2 branch. In particular, #3546607: Convert procedural hooks to object oriented hooks is in progress to convert to object oriented hooks. As this feature requires autowired services, it is not possible to implement keeping support for Drupal 9. Therefore, this change is to remove D9 support from the 4.2 branch.
Comment #3
lostcarpark commentedEdit title to remove question
Comment #5
lostcarpark commentedConfirmed all tests are passing.
Moving to Needs Review.
Comment #6
vitaliyb98 commentedHi @lostcarpark, could you please provide some instructions for testing, which will help people to test it?
Comment #7
lostcarpark commentedHi @vitaliyb98,
I don't think there's any explicit testing required.
Certainly no need to test it won't install against Drupal 9, since all that would test is the Drupal 9 module installer.
In my opinion, since the changes are not to any program code, it is sufficient to eyeball the change, confirm it makes sense, and verify the tests are passing in the pipelines.
Comment #8
lostcarpark commentedI think someone verifying they can still install the module with this change in D10 or D11 should be sufficient, since all it is doing is removing D9 compatibility.
Comment #9
lostcarpark commentedRebased after merge of #3558356: Dispatch event when an entity is changing state on schedule. Also removed 9.x from test module.
Comment #10
lostcarpark commentedAs there have been no objections, and the current versions are still available for D9, I'm moving this to RTBC.
Comment #11
lostcarpark commentedComment #13
lostcarpark commentedMerged and verified tests passed. Moving to fixed.