From f44ec0d772c1eeff41d8b3cecebe29a293b06a8f Mon Sep 17 00:00:00 2001 From: Andreas Hubel Date: Fri, 1 May 2020 17:02:56 +0200 Subject: fix php 7.4 problem --- lib/less.php/Less.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/less.php/Less.php') diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php index 44cdffc..a68b749 100644 --- a/lib/less.php/Less.php +++ b/lib/less.php/Less.php @@ -1762,7 +1762,7 @@ class Less_Parser{ $this->expectChar(']'); - return $this->NewObj3('Less_Tree_Attribute',array( $key, $op[0], $val)); + return $this->NewObj3('Less_Tree_Attribute',array( $key, is_array($op) ? $op[0] : null, $val)); } // -- cgit v1.2.3