From f58ae09659a729e80ce0f41ac74025c10f6fee41 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 20 May 2022 19:14:40 +0200 Subject: [PATCH] chore: php8 compatibility --- index.php | 1 + lib/less.php/Less.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 199c36fd..b8503315 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,7 @@ die("`short_open_tag = On` is required\n"); $GLOBALS['BASEDIR'] = dirname(__FILE__); +$GLOBALS['forceopen'] = false; chdir($GLOBALS['BASEDIR']); require_once('config.php'); diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php index 398ad2d6..eb33c2db 100644 --- a/lib/less.php/Less.php +++ b/lib/less.php/Less.php @@ -5498,7 +5498,7 @@ class Less_Tree_Directive extends Less_Tree{ public $debugInfo; public $type = 'Directive'; - public function __construct($name, $value = null, $rules, $index = null, $currentFileInfo = null, $debugInfo = null ){ + public function __construct($name, $value, $rules, $index = null, $currentFileInfo = null, $debugInfo = null ){ $this->name = $name; $this->value = $value; if( $rules ){