1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-11 00:24:11 +02:00

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

This commit is contained in:
Elan Ruusamäe
2020-07-12 11:50:37 +03:00
committed by Elan Ruusamäe
parent b17c00c05c
commit b89bc57164

View File

@@ -182,7 +182,7 @@ class Minify_ImportProcessor
private function truepath($path)
{
// whether $path is unix or not
$unipath = ('' === $path) || ($path{0} !== '/');
$unipath = ('' === $path) || ($path[0] !== '/');
// attempts to detect if path is relative in which case, add cwd
if (strpos($path, ':') === false && $unipath) {