From baa47d28c8248e1bdd9398b2ff370b3bcfbf626b Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Sat, 9 May 2020 15:18:50 +0200 Subject: Fix PHP 7.4 deprecation warning, also: exception string formatting --- lib/less.php/Less.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/less.php') diff --git a/lib/less.php/Less.php b/lib/less.php/Less.php index a68b749..89a4877 100644 --- a/lib/less.php/Less.php +++ b/lib/less.php/Less.php @@ -5378,7 +5378,7 @@ class Less_Tree_Dimension extends Less_Tree{ $other = $other->convertTo( $this->unit->usedUnits()); if( Less_Parser::$options['strictUnits'] && $other->unit->toString() !== $unit->toCSS() ){ - throw new Less_Exception_Compiler("Incompatible units. Change the units or use the unit function. Bad units: '".$unit->toString() . "' and ".$other->unit->toString()+"'."); + throw new Less_Exception_Compiler("Incompatible units. Change the units or use the unit function. Bad units: '".$unit->toString()."' and '".$other->unit->toString()."'."); } $value = Less_Functions::operate( $op, $this->value, $other->value); @@ -10524,4 +10524,4 @@ class Less_SourceMap_Generator extends Less_Configurable { return $path; } -} \ No newline at end of file +} -- cgit v1.2.3