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 f262a7ac7c4c9f64d58f693b1d9293efb0a4184b..702685dd125f6efb8c30b976d9f2c9a4d1271195 100644 (file)
@@ -16,7 +16,7 @@ function dump() {
        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);