Fix incorrect use of curly braces in legacy classes

This commit is contained in:
Kijin Sung 2020-05-19 20:52:44 +09:00
parent 2cbfd4500c
commit 14ad62e869
4 changed files with 39 additions and 39 deletions

View file

@ -2100,7 +2100,7 @@ class Context
*/
public static function normalizeFilePath($file)
{
if($file{0} != '/' && $file{0} != '.' && strpos($file, '://') === FALSE)
if($file[0] != '/' && $file[0] != '.' && strpos($file, '://') === FALSE)
{
$file = './' . $file;
}