Question: ignore Kint dump warnings when using ~d() or +d()

hi there,

i am a big fan of  https://github.com/kint-php/kint - which gives me a beautiful dump with the function "d()".

kint allows prefixes to modify the output of the dump, for instance: +d() or ~d(), but these prefixes let phpstorm show this error:

of course, i can add  

/** @noinspection PhpExpressionResultUnusedInspection */

but i am searching for a global solution to let phpstorm know: this is okay, please don´t bother me ;-)

 

if anybody has a solution for this, please let me know !

thanks !!

micha

0
2 comments

I am afraid, there is no other way than use suppressions.

Could sound somewhat silly but if you have a list of files where are you using the `d()`, you may create a scope for these and disable the inspection for this scope only.

0

okay, thanks!

0

Please sign in to leave a comment.