intelephense-docs icon indicating copy to clipboard operation
intelephense-docs copied to clipboard

dont understand information from lsp: symbol is declared but not used

Open phisu opened this issue 4 years ago • 2 comments

i have the following code snippet:

public static function delPage($d) {
        if ($d['perm'] != 2)  return array('m'=>'not allowed ('.__LINE__.')');
}

intelephense is complaining:

lsp-flycheck 1003 Symbol '$d' is declared but not used. (lsp)

in my opinion symbol $d is declared AND user in the if-statement. how can i avoid such messages? or, how to disable such informational messages?

phisu avatar Oct 29 '20 07:10 phisu

I can't reproduce this error in 1.6.3.

bmewburn avatar Apr 26 '21 00:04 bmewburn

now i am using 1.7. the message from my example is no longer displayed. thank you for your answer!

could i suppress such information messages?

phisu avatar Apr 29 '21 18:04 phisu