Fix PHP 7.4 deprecation warning, also: exception string formatting

This commit is contained in:
Daniel Molkentin 2020-05-09 15:18:50 +02:00
parent f6feccb8fa
commit baa47d28c8

View file

@ -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;
}
}
}