Skip to content
Snippets Groups Projects
Commit 2ce70c7a authored by KarinG's avatar KarinG
Browse files

Address Array and string offset access syntax with curly braces is deprecated

parent e99a6096
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ abstract class AbstractAssetRule implements AssetRuleInterface {
protected function exportPath($path, $cwd = NULL) {
// This should work for both unix and windows. (Except an odd edge-case: Unix systems with relative paths that have a ":")
$len = strlen($path);
$isAbsolute = ($len > 0 && $path{0} === '/') || ($len > 1 && $path{1} === ':');
$isAbsolute = ($len > 0 && $path[0] === '/') || ($len > 1 && $path[1] === ':');
if (!$isAbsolute) {
return '$baseDir . ' . var_export('/' . $path, 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment