wikimedia / less.php

Less.js ported to PHP. Mirrored from https://gerrit.wikimedia.org/g/mediawiki/libs/less.php/
Apache License 2.0
111 stars 195 forks source link

Import: Fix php warning when importing with variable name #75

Closed Krinkle closed 2 years ago

Krinkle commented 3 years ago

The import worked fine, but it produced a warning as side-effect.

Prevent this by recognising that some URL nodes assigned to $path during the first phase have $value set to a Variable node (instead of an Anonymous node), and thus don't have a value property themselves yet.

Fixes https://github.com/wikimedia/less.php/issues/29. Fixes https://github.com/wikimedia/less.php/issues/32.

Krinkle commented 3 years ago

Test plan suggestion: