Fix loggly formatter on php 5.6