Array and string offset access syntax with curly braces is deprecated
authorRemi Collet <remi@remirepo.net>
Tue, 23 Jul 2019 13:24:54 +0000 (15:24 +0200)
committerRemi Collet <remi@remirepo.net>
Tue, 23 Jul 2019 13:24:54 +0000 (15:24 +0200)
tests/client021.phpt

index f262a7a..702685d 100644 (file)
@@ -16,7 +16,7 @@ function dump() {
        global $tmpfile, $section;
        printf("# %s\n", $section);
        foreach (file($tmpfile) as $line) {
        global $tmpfile, $section;
        printf("# %s\n", $section);
        foreach (file($tmpfile) as $line) {
-               if ($line{0} === "#" || $line === "\n") {
+               if ($line[0] === "#" || $line === "\n") {
                        continue;
                }
                printf("%s:\t%s", $tmpfile, $line);
                        continue;
                }
                printf("%s:\t%s", $tmpfile, $line);