MDL-67115 google: php74 params order for implode()

Passing parameters to implode() in reverse order is deprecated, use
implode($glue, $parts) instead of implode($parts, $glue).

This commit corresponds to general search of wrong cases.
This commit is contained in:
Eloy Lafuente (stronk7) 2020-01-19 18:35:25 +01:00
parent 9cdbacf387
commit 87861d94e3
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,8 @@ Here are the files that we have added.
Local changes (to reapply until upstream upgrades contain them):
* MDL-67034 php74 compliance fixes
* MDL-67115 php74 implode() compliance fixes. This is fixed in upstream library v2.2.4
(verify that https://github.com/googleapis/google-api-php-client/pull/1683 is applied)
Information

View File

@ -170,7 +170,7 @@ class Google_Http_REST
}
if (count($queryVars)) {
$requestUrl .= '?' . implode($queryVars, '&');
$requestUrl .= '?' . implode('&', $queryVars);
}
return $requestUrl;