MDL-67034 google: php74 fix (curly braces) for the Google-Client lib

This commit is contained in:
Eloy Lafuente (stronk7) 2019-10-27 00:21:56 +02:00
parent 15c8da60d4
commit b69028e626
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ Here are the files that we have added.
This should not ever be used directly. The wrapper above uses it automatically.
Local changes (to reapply until upstream upgrades contain them):
* MDL-67034 php74 compliance fixes
Information
-----------

View File

@ -62,7 +62,7 @@ class Google_Utils
$strlenVar = strlen($str);
$d = $ret = 0;
for ($count = 0; $count < $strlenVar; ++ $count) {
$ordinalValue = ord($str{$ret});
$ordinalValue = ord($str[$ret]);
switch (true) {
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
// characters U-00000000 - U-0000007F (same as ASCII)