mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 04:20:55 +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:
parent
98492765d3
commit
5380d87792
1 changed files with 6 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue