1
0
Fork 0

Fix 5.3 syntax

pull/8453/head
Jordi Boggiano 2020-02-14 14:18:26 +01:00
parent 4ebc318510
commit 8dc055bec7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 6 deletions

View File

@ -195,14 +195,14 @@ class GitHubDriver extends VcsDriver
$graphql = 'query{repository(owner:"'.$this->owner.'",name:"'.$this->repository.'"){fundingLinks{platform,url}}}'; $graphql = 'query{repository(owner:"'.$this->owner.'",name:"'.$this->repository.'"){fundingLinks{platform,url}}}';
try { try {
$result = $this->remoteFilesystem->getContents($this->originUrl, 'https://api.github.com/graphql', false, [ $result = $this->remoteFilesystem->getContents($this->originUrl, 'https://api.github.com/graphql', false, array(
'http' => [ 'http' => array(
'method' => 'POST', 'method' => 'POST',
'content' => json_encode(['query' => $graphql]), 'content' => json_encode(array('query' => $graphql)),
'header' => ['Content-Type: application/json'], 'header' => array('Content-Type: application/json'),
], ),
'retry-auth-failure' => false, 'retry-auth-failure' => false,
]); ));
} catch (\TransportException $e) { } catch (\TransportException $e) {
return $this->fundingInfo = false; return $this->fundingInfo = false;
} }