Don't allow mixed types for args, use short array

Add docblocks and type hints
Bump PHP version to 5.4 for short array syntax