Fix php version compatibility

I used php 5.4 for my tests and used a syntax not compatible with php 5.3.