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
Follow up to #2776975: March 3, 2017: Convert core to array syntax coding standards for Drupal 8.3.x RC phase for the API documentation.
Proposed resolution
Changing the API Docs to short array syntax.
Remaining tasks
TBD
Comments
Comment #2
joelpittetComment #3
joelpittetComment #4
xjmBefore we actually patch core, we should maybe create a coder rule to check for
array(
in PHP comments?Comment #5
joelpittetThat sounds like a good idea to me. Keeps it check-able. Which queue does that go into?
Comment #6
xjm@joelpittet, should be https://www.drupal.org/project/coder
Comment #7
joelpittetThanks @xjm, Postponed on #2857906: Enforce short array syntax for Drupal 8 api docblock comments
Comment #13
quietone CreditAttribution: quietone as a volunteer commentedThanks for starting the process to fix array syntax in core.
Coding standards are fixed by sniff now. Closing this as a duplicate of #2874067: Fix Drupal.Commenting.DocCommentLongArraySyntax coding standard which has a patch.
Thanks.