Tweak to improve PHP version compatibility.
Merge pull request #26 from MIkeDixon/patch-6

Tweak to improve PHP version compatibility.