Add support for PHP 5.2

Replace literal array notation that was introduced in PHP 5.4 with more widely supported syntax which brings support for older versions of PHP