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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -