Throw exceptions on PHP warnings

Sometimes we miss PHP warnings because our layout overlays them.