Skip to content

curl_setopt with CURLOPT_POSTFIELDS → Parameter #3 $value of function curl_setopt expects non-empty-string, string given. #8065

@mrohnstock

Description

@mrohnstock

Bug report

Since the PR 1719 providing an key-value array to http_build_query and using the return value as 3. parameter to curl_setopt with CURLOPT_POSTFIELDS lead to this issue.

Code snippet that reproduces the problem

https://phpstan.org/r/6d05e5cb-00cf-482d-9021-0c077e2c63bb

Expected output

none error

Did PHPStan help you today? Did it make you happy in any way?

always happy with a new release as many (invisible) issue get's discovered - thank you :D!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions