1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 12:52:42 +01:00

Use long array syntax for compatibility instead of short array syntax

Summary: Fixes T11409. This syntax isn't compatible with older PHP.

Test Plan: Ran `arc lint` on the file.

Reviewers: yelirekim, chad

Reviewed By: chad

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T11409

Differential Revision: https://secure.phabricator.com/D16358
This commit is contained in:
epriestley 2016-08-01 04:27:41 -07:00
parent 98492765d3
commit 5380d87792

View file

@ -56,10 +56,13 @@ final class HarbormasterQueryBuildsConduitAPIMethod
$subsumption = $call->setUser($viewer)
->execute();
$data = [];
$data = array();
foreach ($subsumption['data'] as $build_data) {
$querybuilds = idxv($build_data, array('attachments', 'querybuilds'), []);
$fields = idx($build_data, 'fields', []);
$querybuilds = idxv(
$build_data,
array('attachments', 'querybuilds'),
array());
$fields = idx($build_data, 'fields', array());
unset($build_data['fields']);
unset($build_data['attachments']);
$data[] = array_mergev(array($build_data, $querybuilds, $fields));