update php throw snippet