-
Hi there, I'm trying to declare the global constant $_SERVER['DOCUMENT_ROOT'] but I can't. Psalm seems to not be able to find included files that I call using that variable.
But psalm continues to complain that files (well, declared functions in files) are not found. Hiw am I supposed to manage psalm settings so global constant such as $_SERVER['DOCUMENT_ROOT'] is found? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you could try to document $_SERVER in https://psalm.dev/docs/running_psalm/configuration/#globals. Not sure we ever had this issue reported before though. It may not be supported at all. |
Beta Was this translation helpful? Give feedback.
you could try to document $_SERVER in https://psalm.dev/docs/running_psalm/configuration/#globals. Not sure we ever had this issue reported before though. It may not be supported at all.