diff options
author | Daniel Molkentin | 2020-05-09 15:18:50 +0200 |
---|---|---|
committer | Daniel Molkentin | 2020-05-09 15:18:50 +0200 |
commit | baa47d28c8248e1bdd9398b2ff370b3bcfbf626b (patch) | |
tree | 37c6d68caf128361a7abcb3d956e847f046ec1c1 /lib/less.php/Less.php | |
parent | f6feccb8fac527c9f58687df9dbe23f8677df2da (diff) |
Fix PHP 7.4 deprecation warning, also: exception string formatting
Diffstat (limited to 'lib/less.php/Less.php')
-rw-r--r-- | lib/less.php/Less.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |