Closed (fixed)
Project:
Coder
Version:
9.x-dev
Component:
Code
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Oct 2025 at 12:33 UTC
Updated:
8 Apr 2026 at 10:50 UTC
Jump to comment: Most recent
We have a couple of compatibility breaks we want to do, so we need to make a new major version: Coder 9.x
Create a new 9.x git branch and start the work there.
Items we want to do:
* #3548073: Update php_codesniffer to 4.0
* #3553265: Remove empty VariableAnalysis sniff and all deprecated functionality
* #3556778: Fix spelling in sniff error codes
* Go through all sniffs and try to replace them with upstream sniffs from PHPS or Slevomat or others.
All TODOs seem to be done and we are aiming to release 9.0 in January 2026.
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
arkener commentedWith this new major version, should we also consider dropping support for Drupal 7 in Coder?
Comment #3
klausiI would like to keep Drupal 7 support as I'm still running lots of Drupal 7 sites and use Coder as part of the dev process :)
Comment #4
klausiComment #5
klausiThe biggest chunk of work was done in #3548073: Update php_codesniffer to 4.0.
I started to replace some sniffs with sniffs from Slevomat, which is nice to reduce the code to maintain in Coder.
Comment #6
klausiComment #7
klausiComment #8
klausiComment #9
klausiComment #10
klausiCoder 9.0.0-alpha1 released, but I plan to check some more sniffs we could remove by upstream sniffs. https://www.drupal.org/project/coder/releases/9.0.0-alpha1
Comment #11
thejimbirch commentedTypo fix. Thanks for the great documentation.
Comment #12
klausiImplemented cspell fixes #3556778: Fix spelling in sniff error codes.
Comment #13
klausiComment #14
klausiComment #15
klausiComment #17
klausiComment #19
klausiComment #20
klausiComment #21
klausiComment #24
klausiCoder 9.0.0-alpha2 released 🚀
2 new features: now checking that trait names end with "Trait" and that there is a newline before the finally keyword.
Lots of other refactoring in the background to use upstream sniffs that already exist in PHPCS and Slevomat.
https://www.drupal.org/project/coder/releases/9.0.0-alpha2
TODO:
* Replace ValidClassName sniff with sniff from upstream
* Move CI from Github to drupal.org Gitlab
* Check all sniffs to find more that we can replace with upstream ones.
Comment #25
klausiI checked ValidClassName sniff and I think we want to keep it for now, as it is a bit different than upstream.
I also did not find any upstream replacements for the remaining sniff and would keep them as is now.
From my point of view everything is ready for a 9.0 release. I'm aiming to do that in January 2026.
Let me know if you want any API breaking changes that we should get in before 9.0!
Comment #29
klausiAdapting API changes for Drupal.Commenting.DataTypeNamespace, we removed the Slevomat replacement again in #3360163: Stop using FQCN in @param @var @return annotations.
Comment #30
klausiCoder 9.0.0 released! https://www.drupal.org/project/coder/releases/9.0.0
Comment #32
quietone commentedIt was difficult for me to read through the list of sniffs so I did some re-formatting,
Requirements
Dependency
Changes to sniffs
Replaced
Removed
Renamed
Comment #33
klausithanks, copied to the issue summary, will also copy to release notes.
Comment #34
klausifixed HTML