There are records in php error log files like
PHP Notice: Trying to access array offset on value of type null in /var/www/wiki/vendor/wikimedia/less.php/lib/Less/Parser.php on line 1927
Mediawiki 1.34.0 and PHP 7.4.7 are used. The similar code is in 1.34.2 too.
if($op) condition is handled above but if( !$op ) did not, so here is error:
return $this->NewObj3('Less_Tree_Attribute',array( $key, $op[0], $val));
Please fix it in further versions.