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.
As noted in #2135291 and #2776975, the coding standard regarding arrays is changing. As Drupal 8.3 is adopting the short array syntax, the Drupal 8 code for this module should follow that.
So going forward the syntax should change from
["apples", "oranges", "bananas"]
instead of
array("apples", "oranges", "bananas")
Comment | File | Size | Author |
---|---|---|---|
#3 | follow_the_php_5_4_array_syntax-2861950.patch | 40.67 KB | snufkin |
#2 | follow_the_php_5_4_array_syntax-2861950-2.patch | 42.17 KB | snufkin |
Comments
Comment #2
snufkin CreditAttribution: snufkin as a volunteer commentedChanges are made using the converter from https://github.com/thomasbachem/php-short-array-syntax-converter.
Comment #3
snufkin CreditAttribution: snufkin as a volunteer and at Cheppers commentedUpdating patch to latest dev.
Comment #5
snufkin CreditAttribution: snufkin as a volunteer and at Cheppers commentedI'll merge as this patch does not affect functionality, hopefully with the new RC we can get more eyes on it :)