Possible to Suppress Specific Deprecated Warnings?

Is there a way to suppress the deprecated warning for certain PHP elements but not others? I know I could go to Settings -> Editor -> Inspections -> PHP -> General -> Deprecated and turn them all off but I'm looking for something more fine grained.

For example, if I have planned to handle our database layer later I would want to suppress the deprecated warning on the various mysql_* functions but I still want to get the warning for split() and the various ereg/eregi functions and anything else?

Thanks!

Matt

1 comment
Comment actions Permalink

Hi there,

Yes and No.

You can suppress such warning for a specific line or all occurences in certain files/folders (via custom scope) .. but you cannot specify what symbols (functions/classes/etc) to be whitelisted.

0

Please sign in to leave a comment.