From 58106b0a73df24b3604b609e1a07ea4f28152f96 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 12 Aug 2018 18:21:38 +0200 Subject: [PATCH] Pass HttpHeader as array Signed-off-by: Daniel Kesselberg --- build/signed-off-checker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/signed-off-checker.php b/build/signed-off-checker.php index f21854a83d..32deceb47b 100644 --- a/build/signed-off-checker.php +++ b/build/signed-off-checker.php @@ -60,9 +60,9 @@ if(!is_string($githubToken) || $githubToken === '') { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); -curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/'.$repoOwner.'/'.$repoName.'/pulls/'.$pullRequestNumber.'/commits'); +curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/' . $repoOwner . '/' . $repoName . '/pulls/' . $pullRequestNumber . '/commits'); curl_setopt($ch, CURLOPT_USERAGENT, 'CI for Nextcloud (https://github.com/nextcloud/server)'); -curl_setopt($ch, CURLOPT_HTTPHEADER, 'Authorization: token ' . $githubToken); +curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: token ' . $githubToken]); $response = curl_exec($ch); curl_close($ch);