Problem/Motivation

This module is using PHP short array syntax. This will cause syntax errors on anyone running Drupal 7 on a server with PHP version less than 5.4.

Proposed resolution

Remove short array syntax following the coding standard:

Short array syntax should not be used in Drupal 7.x or 6.x core or contributed modules.

- #2135291: [Policy, no patch] PHP 5.4 short array syntax coding standards for Drupal 8

CommentFileSizeAuthor
#2 remove_short_array-2876640-2.patch1.25 KByanniboi

Comments

yanniboi created an issue. See original summary.

yanniboi’s picture

Status: Active » Needs review
StatusFileSize
new1.25 KB

Patch attached:

gg24’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected.

Thanks @yanniboi!

  • gg24 committed f9ef96d on 7.x-1.x authored by yanniboi
    Issue #2876640 by yanniboi, gg24: Remove short array syntax in Drupal 7
    
gg24’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.