Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 9fb0069

Browse files
committed
Add TODO note for PHP 5.5 support
1 parent 7b1c435 commit 9fb0069

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Facebook/FacebookBatchResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function addResponse($key, $response)
102102

103103
$httpResponseBody = isset($response['body']) ? $response['body'] : null;
104104
$httpResponseCode = isset($response['code']) ? $response['code'] : null;
105+
// @TODO With PHP 5.5 support, this becomes array_column($response['headers'], 'value', 'name')
105106
$httpResponseHeaders = isset($response['headers']) ? $this->normalizeBatchHeaders($response['headers']) : [];
106107

107108
$this->responses[$originalRequestName] = new FacebookResponse(
@@ -154,6 +155,7 @@ public function offsetGet($offset)
154155

155156
/**
156157
* Converts the batch header array into a standard format.
158+
* @TODO replace with array_column() when PHP 5.5 is supported.
157159
*
158160
* @param array $batchHeaders
159161
*

0 commit comments

Comments
 (0)