php - Turn off "Missing Argument" warning -
i tend lot of these in php:
missing argument 2 ui_alert()
i understand how "fix it", thats not want. want change error reporting settings these don't show up.
i having error reporting broad possible, me warning seems ridiculous. have change entire code base every time update function handle use case. unless i'm missing something, doesn't introduce security issues either way.
can surpress specific warning without turning off other warnings?
just add default value argument in ui_alert()
function declaration, null
, , warning go away.
can surpress specific warning without turning off other warnings?
no. can turn off warnings
there's error control operator (@
) allows suppress errors or warnings expression, that's bad practice , require change "the entire code base"
Comments
Post a Comment