Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Update drupal/coder to the latest version.
- Includes PHP 7.4 support
- Bugfixes
- #2958175: Add rule to prevent direct usage of $_GET, $_POST, $_REQUEST and $_FILES in Drupal 8
Proposed resolution
Fix failing coding standards. Note DateTimePlus contains some non-standard documentation that doesn't work. See $settings documentation on https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Date...
* @param array $settings
* @see __construct()
The @see does not work at all - and doesn't work in PHPStorm either. Fortunately there are other methods that already have
* @param array $settings
* (optional) A keyed array for settings, suitable for passing on to
* __construct().
so we can copy that.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#14 | 3099583-9.0.x-14.patch | 7.59 KB | alexpott |
#14 | 3099583-8.9.x-14.patch | 8.96 KB | alexpott |
#14 | 13-14-interdiff.txt | 888 bytes | alexpott |
#13 | 3099583-9.0.x-13.patch | 6.72 KB | alexpott |
#8 | 3099583-9.0.x-8.patch | 8.39 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottThere's one more fail on 9.0.x when running phpcs...
Comment #4
klausiLooks good, just one super minor comment we should clean up:
the data type says mixed but the comment says string. On the constructor the data type is also string. So let's change the data type to string here so that we don't introduce a contradicting comment.
Comment #5
alexpottGood idea. I borrowed the docs from core PHP
So yep this has to be a string.
Comment #6
klausiLooks good, thanks!
PHPCS does not report problems, we should be good.
Comment #7
neclimdulThe properties indention is off here. I guess we should nit the style on a style commit but that can be fixed on commit.
Comment #8
alexpottFixed #7
Comment #9
heddnThis needs backporting to 8.8. I'm using
"drupal/core-dev": "^8.8"
and right now my site is failing on running phpcs using the default core styles on 8.8.1.Comment #11
SpokjePatch for D8.9 in #8 applies cleanly and greenly on D8.8.x: https://www.drupal.org/pift-ci-job/1520837
Comment #12
neclimdul9 too. I think that might be some random or unrelated failure that happened before. LGTM.
Comment #13
alexpottOkay so the 9.0.x branch has been updated - but is currently failing coder :( - here's a new patch.
Comment #14
alexpottSome CS errors have been added by recent patches...
Comment #16
catchCommitted a0bdf62 and pushed to 9.0.x, and cherry-picked to 8.9.x. Thanks!