Problem/Motivation

Since Drupal 7 uses PHP 5.3, the drush commands for the sensors (example sensu command) fails due to array syntax using [] instead of array().
PHP Parse error: syntax error, unexpected '[' in sites/all/modules/contrib/monitoring/monitoring.drush.inc on line 242

Proposed resolution

Change all '[]' appearances to 'array()' in the sensors.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 drush_commands_failing-2823677-2.patch1.46 KBginovski

Comments

Ginovski created an issue. See original summary.

ginovski’s picture

Status: Active » Needs review
StatusFileSize
new1.46 KB

1. Changed [] to array() in the drush file.

  • Berdir committed fd5aa98 on 7.x-1.x authored by Ginovski
    Issue #2823677 by Ginovski: Drush commands failing due to array syntax...
berdir’s picture

Title: Drush commands failing due to array syntax in the sensors » Drush commands failing due to short array syntax on PHP 5.3
Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

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