syntax fix for php version difference