ds had formula for his overnight feedings.

He had a bottle around 11:30. an hour later he had diahrea (and the diaper got changed multiple times while he was at the changing table)

Is it the breast milk that irritated him(since it was the last feeding) or formula - since it was colored like formula poo?