Add assertions to catch invalid PHP.