How can I ignore type errors?

I'm having somewhat of an annoying problem, I've attached an image to illustrate it, nowhere does it define the requirement for a type \lithium\core\Closure (it doesn't even exist) yet PhpStorm keeps underlining all of the code within these lambdas as if there is an error (there isn't) - it's rather annoying, is there a way i can tell phpstorm to at least ignore certain problems?

Thanks and Best,
Howard



Attachment(s):
phpstorm_expected error.png
7 comments

Hello Howard,

is there a way i can tell phpstorm to at least ignore certain problems?

You can suppress inspection on certain statements - http://www.jetbrains.com/phpstorm/webhelp/suppressing-inspections.html

Thank you for feedback!

0

Thanks I'll give that a try when I'm done fighting with git, the built in git keeps grabbing an old file from the branch i'm trying to switch to.. trying to tell it there's a new one.

0

Howard,

the built in git keeps grabbing an old file from the branch i'm trying to switch to.. trying to tell it there's a new one.

Please create separate discussions thread for that.

0

Got the git issues straightened out, the alt+enter to disable inspection worked well, are there plans to disable on a specific type (say for in this instance, it was looking for \lithium\core\Closure, and i wanted to ignore only those.)?

Thanks again I wasn't aware of the depth of the inspection system, PhpStorm just justifies it's purchase more and more.

0

Howard,

are there plans to disable on a specific type (say for in this instance, it was looking for \lithium\core\Closure, and i wanted to ignore only those.)?

Please create a feature request - http://youtrack.jetbrains.net/issues/WI#newissue=yes

Thank you for feedback!

0

There's definitely some kind of problem - either with PS or your code... You should not suppress the inspections but report a bug - especially if you beleive that your code is OK.

Can you please provide PHPDOC and declaration signature  of  the function _filter?..

Better all filed as a separate tracker Issue..

0

I've decided nto to file one in this case, I believe code should work happily without any type errors and this would have the potential to slow down the ide (albeit a tiny bit), This seems more like a PhpDoc misinterpretation than anything..

0

Please sign in to leave a comment.