Replace short arrays in Twitter example

Replace short arrays in Twitter example, since they are only available in PHP >= 5.4 but the minimum PHP version in composer.json is 5.3.