bmewburn / intelephense-docs

Documentation for the Intelephense PHP language server
https://intelephense.com
Other
184 stars 17 forks source link

Question: Is there a way to ignore symbols/notes? #62

Open DanielTate opened 10 months ago

DanielTate commented 10 months ago

I have some code

private static $var = ['somevalue' => 'another value'];

This code is used by the parent class but still provides the notice "Symbol '$var' is declared but not used.

Is there a way to disable this note? I am definitely using the symbol in another file?

EternalPlanemo commented 2 months ago

I'm half a year late but the @disregard phpdoc seems to remove this warning. I was looking for the same answer and just stumbled into it through trial and error