-
-
Notifications
You must be signed in to change notification settings - Fork 938
Closed
Description
What should be the preferred way to tell phpstan that $_SERVER['REQUEST_URI'] is a string, rather than mixed? For example here:
https://phpstan.org/r/a0b92a7e-d3e9-497f-b882-01fc99e22a36
In my use case, I know$_SERVER['REQUEST_URI'] will be set by the web server and that it will be a non-empty string.
Should I write a stub? I've tried defining types$_SERVER in a documentation block, but that doesn't seem to work.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels