Bug report
As of phpstan/phpstan-src#1719 CURLOPT_PROXY reports an error if set to a simple string.
AFAIK proxy can be empty string or null as well, as per https://curl.se/libcurl/c/CURLOPT_PROXY.html default is null, and in Composer we always set it to empty string when there is no proxy and that definitely works.
cc @staabm