Changed var_export() calls to use "true" as second parameter. Not sure which PHP version it was added in, but I could have sworn it wasn't there last time I checked.
#!/bin/bash
for f in *.svg; do
echo Converting $f
fname=`echo $f | cut -d '.' -f 1`
rm -f $fname.png
inkscape -z -f $f -w 22 -h 22 -e ./$fname.png
done