eclipse-pdt / pdt

PHP Development Tools project (PDT)
https://eclipse.org/pdt
Eclipse Public License 2.0
188 stars 46 forks source link

Misleading rendering of `$argc` and `$argv` in function bodies #248

Closed flack closed 10 months ago

flack commented 1 year ago

Describe the bug

As mentioned in https://github.com/eclipse-pdt/pdt/issues/120#issuecomment-1621815302 $argc and $argv are currently rendered like superglobals when they appear inside of function bodies, but in that case, they are local variables

Expected behavior $argc and $argv should be rendered as local variables when they appear in a function body (or maybe even in general, if that makes it easier)

Screenshots

Bildschirmfoto 2023-07-20 um 14 55 26