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.
Alternative installation files
Download coder-8.x-2.10.tar.gztar.gz
91.63 KB
MD5: 8181f594b44813f43cf4524db3a89904
SHA-1: c13eb7b6bbbaab224b6e7013829860699c28041e
SHA-256: 284fe865de904fdcbb512211ba8e18b78c79799868634cca8c7307c4f6902209
Download coder-8.x-2.10.zipzip
177.67 KB
MD5: 50c62f44c37d732fbbb04b383727ed97
SHA-1: 03547e5838163e1cded923d7a660934364b86d76
SHA-256: 04eca71462f1a8cccc7774fa84ace1131669894ff8e7a98694643d76153174fb
Release notes
New features since 8.2.9:
- feat(GlobalConstantSniff): Added a sniff to forbid global use of constants in Drupal 8
- feat(GlobalDefineSniff): Added a sniff to detect global define() calls in module files (issue #2808065)
- feat(FunctionCommentSniff): Restore type hint requirement when @param is documented as array (issue #2803251)
- feat(DiscouragedFunctionsSniff): Add a warning to not use the PHP function eval() (#2116823)
- feat(MultipleStatementAlignmentSniff): Add a sniff to check spacing before assignments (#2222441)
- feat(VariableCommentSniff): Add fixer for wrong comment style on class variables (#2677248)
- feat(PropertyDeclarationSniff): Add a fixer for var keyword on class properties (#2834058)
- feat(UnusedPrivateMethodSniff): Add a sniff to detect unused private methods in classes
Bug fixes since 8.2.9:
- fix(LineLengthSniff): Allow @link lines to exceed characters if in a list (issue #2791183 by dawehner, klausi)
- fix(LineLengthSniff): Allow the hook implementation docs line to exceed 80 characters (issue #2797541)
- fix(DocCommentSniff): Allow missing doc block comment if @covers annotation is used on PHPUnit test methods
- fix(GlobalConstantSniff): Allow global constants that are @deprecated in docs (issue #2808065)
- fix(ValidVariableNameSniff): Allow underscore class properties in classes that look like config entities (issue #2804739)
- fix(HookInitCssSniff): Improve warning message wording (#2817537 by shrop)
- fix(VariableAnalysisSniff): Fix false positives with pass by reference variables in closure use statements
- fix(HookCommentSniff): Allow doc block comments about hooks with different endings (#2821834 by ZeiP)
- fix(InlineCommentSniff): Fix doc block detection on var key word
- fix(GlobalDrupalSniff): Add WidgetBase as base class where dependency injection should be used
- fix(DocCommentAlignmentSniff): Fix var keyword doc comment alignment by copying the sniff from Squiz
- fix(FunctionCommentSniff): Allow numbers in data types for @param and @return (#2831771)
- fix(UnusedUseStatementSniff): Fix PHP 7 return type declaration false positives (#2830670)
- fix(UnusedUseStatementSniff): Fix test case for false positives with return types and use statements (#2830670)
- fix(UnusedPrivateMethodSniff): Fix false positives when private methods are used as callbacks in strings
Other changes since 8.2.9:
- chore(composer): Declare that this branch of Coder is not compatible with PHPCS 3.x
- refactor(GlobalConstantSniff): Move GlobalConstantSniff to separate Constants group (issue #2808065)
- refactor(class extends): Use findExtendedClassName() helper method from PHPCS
- style(doc comments): Remove comments talking about PHP version 5 (#2822279 by chipway)
- style(doc comments): Improve coding standards compliance (#2747101 by chipway)
- chore(tests): Add global installed path setting during tests so that they work with PHPCS 2.7.1
- refactor(VariableAnalysisSniff): Move config options diretly to class to make test case pass with PHPCS 2.7.1
- style(if statements): Coding standards compliance with PHPCS for if statements
- chore(ScopeIndentSniff): Backport anonymous classes support from upstream PHPCS