Luuk
Luuk

Reputation: 21

Surpress PhpStorm Inspection for specific types

I've configured PhpStorm code Inspection in my project recently, and I noticed some undesired behavior.

The PhpStorm code Inspector seems to always have wrong mentions about code that is inside an eval(). For example, undefined constant, undefined variable, etc. when everything is actually fine.

With this reason I would like to disable the PhpStorm Inspector to look at every eval() that occurs in my entire project.

Now I know I could do this by adding /** NoInspection ... */ in or above each line containing eval(), but I figured there might be another (easier) way to solve this issue, since there is a lot of eval() in my code.

Does someone have advice for me?

Upvotes: 1

Views: 84

Answers (0)

Related Questions