Skip to content
Snippets Groups Projects
Commit de7e515a authored by totten's avatar totten
Browse files

Merge branch 'KarinG-Deprecation-Notice' into 'master'

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

See merge request dev/civicrm-asset-plugin!3
parents e99a6096 2ce70c7a
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