Turns out it's a bug in lessphp: https://github.com/leafo/lessphp/pull/478
Currently the solution is change the version in composer.json to:
"require": {
"leafo/lessphp": "dev-master#85bd4557920d5f4fcbf41beb621e91b842e3621b"
}
but obviously this is just temporary. Thanks to milka in #symfony on freenode!