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.
Follow up to #2935151: Long array syntax checking in ./core files is broken
> phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --
FILE: ...re/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
160 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 1 mins, 21.72 secs; Memory: 98Mb
Comment | File | Size | Author |
---|---|---|---|
#2 | 2935524.patch | 705 bytes | neclimdul |
Comments
Comment #2
neclimdulAt least we know the array check is working :)
Comment #3
larowlanComment #4
larowlanCommitted 1f0b760 and pushed to 8.5.x.