Fix deprecated call for php 5.5