Fix PHP 5.3 syntax issues

The library uses PHP 5.4+ features like function array dereferencing which breaks PHP 5.3 compatibility as stated in composer.json.