Change this line to
```
$output = '';
```

Or set the line below to use `=` instead of `.=`, either approach is fine.