Silence PHP warnings

Stop PHP bleating about the array being too small when 'type' is not specified.
Merge pull request #1 from bodgit/master

Silence PHP warnings