zordius / lightncandy

An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ),
https://zordius.github.io/HandlebarsCookbook/
MIT License
610 stars 76 forks source link

Stop trying to access an int as an array #336

Closed reedy closed 4 years ago

reedy commented 4 years ago

Causes a notice on PHP 7.4, whereas on older versions, 0[1] ends up as null

Fixes the other issues in https://github.com/zordius/lightncandy/issues/327

JeroenDeDauw commented 4 years ago

@zordius

zordius commented 4 years ago

Thank you for your contribution!