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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user