From 92db052ec0c1d7cbfea55ede20a9d9e914ddbdf6 Mon Sep 17 00:00:00 2001 From: Steffen Gransow Date: Tue, 25 Feb 2020 15:13:50 +0100 Subject: [PATCH] another php7.4 compat fix --- src/CodeGen/Parser/Config/ConfigIniParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CodeGen/Parser/Config/ConfigIniParser.php b/src/CodeGen/Parser/Config/ConfigIniParser.php index 9c54941..f8b4cd4 100644 --- a/src/CodeGen/Parser/Config/ConfigIniParser.php +++ b/src/CodeGen/Parser/Config/ConfigIniParser.php @@ -225,7 +225,7 @@ protected function fixPath($path) if (empty($path)) { return $fixed_path; } - if (DIRECTORY_SEPARATOR != $path{strlen($path) - 1}) { + if (DIRECTORY_SEPARATOR != $path[strlen($path) - 1]) { $fixed_path .= DIRECTORY_SEPARATOR; }