Skip to content

CURLOPT_PROXY does not have to be non-empty-string #8152

@Seldaek

Description

@Seldaek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions