Fix PHP compatibility issue
Merge pull request #308 from ratajczak/master

Fix PHP compatibility issue