MPDF disables warnings when it is initialised. Undo this behaviour and only disable warnings when actually calling MPDF functions which can throw them so that you still receive warnings in the rest of your app.