MDL-67114 scssphp: php74 compatibility local fixes

Note they are already available upstream, versions 1.0.4 and up so,
in next upgrade they will be fixed.
This commit is contained in:
Eloy Lafuente (stronk7)
2020-01-03 11:33:15 +01:00
parent 309912cfca
commit a6e544e825
2 changed files with 14 additions and 1 deletions
+5 -1
View File
@@ -2664,11 +2664,15 @@ class Compiler
* @param array $value
* @param boolean $inExp
*
* @return array|\ScssPhp\ScssPhp\Node\Number
* @return null|array|\ScssPhp\ScssPhp\Node\Number
*/
protected function reduce($value, $inExp = false)
{
if (is_null($value)) {
return null;
}
switch ($value[0]) {
case Type::T_EXPRESSION:
list(, $op, $left, $right, $inParens) = $value;