monkeypatch lesserphp
This applies https://github.com/MarcusSchwarz/lesserphp/pull/19 manually to the vendor directory. It seems lesserphp is abandoned and we will need to find a proper solution. Probably by maintaining our own fork. For now this should fix PHP 7.4 tests.
This commit is contained in:
parent
0827d09669
commit
6b6d27d965
|
@ -758,7 +758,7 @@ class lessc {
|
|||
if ($suffix !== null &&
|
||||
$subProp[0] == "assign" &&
|
||||
is_string($subProp[1]) &&
|
||||
$subProp[1]{0} != $this->vPrefix)
|
||||
$subProp[1][0] != $this->vPrefix)
|
||||
{
|
||||
$subProp[2] = array(
|
||||
'list', ' ',
|
||||
|
@ -2759,7 +2759,7 @@ class lessc_parser {
|
|||
$hidden = true;
|
||||
if (!isset($block->args)) {
|
||||
foreach ($block->tags as $tag) {
|
||||
if (!is_string($tag) || $tag{0} != $this->lessc->mPrefix) {
|
||||
if (!is_string($tag) || $tag[0] != $this->lessc->mPrefix) {
|
||||
$hidden = false;
|
||||
break;
|
||||
}
|
||||
|
@ -2813,7 +2813,7 @@ class lessc_parser {
|
|||
protected function fixTags($tags) {
|
||||
// move @ tags out of variable namespace
|
||||
foreach ($tags as &$tag) {
|
||||
if ($tag{0} == $this->lessc->vPrefix)
|
||||
if ($tag[0] == $this->lessc->vPrefix)
|
||||
$tag[0] = $this->lessc->mPrefix;
|
||||
}
|
||||
return $tags;
|
||||
|
|
Loading…
Reference in New Issue