From 238e3f16310f68b115be45afb780ef63216c600b Mon Sep 17 00:00:00 2001 From: Shaz3e Date: Sat, 6 Feb 2021 17:01:45 +0500 Subject: [PATCH 1/2] Fixed (curly braces is deprecated) Deprecated: Array and string offset access syntax with curly braces is deprecated --- lessc.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lessc.inc.php b/lessc.inc.php index 37988952..90fac1aa 100644 --- a/lessc.inc.php +++ b/lessc.inc.php @@ -746,7 +746,7 @@ protected function compileProp($prop, $block, $out) { if ($suffix !== null && $subProp[0] == "assign" && is_string($subProp[1]) && - $subProp[1]{0} != $this->vPrefix + $subProp[1][0] != $this->vPrefix ) { $subProp[2] = array( 'list', ' ', @@ -1963,7 +1963,7 @@ protected function injectVariables($args) { $this->pushEnv(); $parser = new lessc_parser($this, __METHOD__); foreach ($args as $name => $strValue) { - if ($name{0} !== '@') { + if ($name[0] !== '@') { $name = '@' . $name; } $parser->count = 0; @@ -2624,7 +2624,7 @@ protected function parseChunk() { $hidden = true; if (!isset($block->args)) { foreach ($block->tags as $tag) { - if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) { + if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) { $hidden = false; break; } @@ -2678,7 +2678,7 @@ protected function isDirective($dirname, $directives) { protected function fixTags($tags) { // move @ tags out of variable namespace foreach ($tags as &$tag) { - if ($tag{0} == $this->lessc->vPrefix) + if ($tag[0] == $this->lessc->vPrefix) $tag[0] = $this->lessc->mPrefix; } return $tags; From 237aa8b3a61de486158b42da0b1b964ac8a9c3b3 Mon Sep 17 00:00:00 2001 From: Shaz3e Date: Sat, 6 Feb 2021 17:11:44 +0500 Subject: [PATCH 2/2] php v7.4 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1da8ccb1..9d4c8dcf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ php: - 7.1 - 7.2 - 7.3 + - 7.4 sudo: false