Closed radoeka closed 4 years ago
Looks like that I found a solution for this in the nextcloud issue tracker. The 3rd party must be patched for this.
There are some issues involved:
In the end one of the issues refers to the commit that made it work:
I did not find an applyable patch, hence I created one myself:
diff -Naur src/Compiler.php src-new/Compiler.php
--- src/Compiler.php 2020-07-15 22:01:07.000000000 +0200
+++ src-new/Compiler.php 2020-08-11 19:30:48.279421680 +0200
@@ -5211,10 +5211,10 @@
return new Node\Number(strlen($stringContent), '');
}
- protected static $libStrSlice = ['string', 'start-at', 'end-at'];
+ protected static $libStrSlice = ['string', 'start-at', 'end-at:-1'];
protected function libStrSlice($args)
{
- if (isset($args[2]) && $args[2][1] == 0) {
+ if (isset($args[2]) && ! $args[2][1]) {
return static::$nullString;
}
@@ -5227,7 +5227,7 @@
$start--;
}
- $end = (int) $args[2][1];
+ $end = isset($args[2]) ? (int) $args[2][1] : -1;
$length = $end < 0 ? $end + 1 : ($end > 0 ? $end - $start : $end);
$string[2] = $length
I'll close the issue, as the problem is with a 3rd party library.
I get the following error in my nextcloud log:
apporder version:0.10.0
regel 5230 Compiler.php:
scssphp Version info:
Anything that can be done about about the reported Error?