Errors on global composer use
Closed this issue · 1 comments
Since i installed the global-ray i got PHP errors at every "composer" command i do.
The first one is:
Warning: Undefined array key "HTTP_HOST" in /Users/***/.composer/vendor/spatie/global-ray/src/scripts/global-ray-loader.php on line 48
Which would be understandable since HTTP_HOST isn't set on cli.
The second one is:
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/***/.composer/vendor/spatie/global-ray/src/scripts/global-ray-loader.php on line 48
Also understandable since the HTTP_HOST will be null if not set.
So did i do some setting wrong or is this a bug?
Also isn't it best practice to check if a server variable isset and has the expected format before using it?
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.