From b89bc57164438a129e9db4f4bce09a53dbb6d1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 12 Jul 2020 11:50:37 +0300 Subject: [PATCH] Fix Array and string offset access syntax with curly braces is deprecated --- lib/Minify/ImportProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Minify/ImportProcessor.php b/lib/Minify/ImportProcessor.php index f8ed4b4..00e413b 100644 --- a/lib/Minify/ImportProcessor.php +++ b/lib/Minify/ImportProcessor.php @@ -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) {