bmewburn / intelephense-docs

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

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

Open phisu opened 4 years ago

phisu commented 4 years ago

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?

bmewburn commented 3 years ago

I can't reproduce this error in 1.6.3.

phisu commented 3 years ago

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?