Use PHP 5.3 compatible array definition.

Hi!

I have just deployed your code to production and found out it is not PHP 5.3 compatible -( However, composer states that PHP 5.3 is enough. So we have 2 options from here: make these 2 functions PHP 5.3 compatible or update composer.json to require PHP 5.4. I'd prefer the former, hence my pull request.

Thanks in advance.