Skip to content

Fix "Notice: Array to string conversion" #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2013
Merged

Fix "Notice: Array to string conversion" #1

merged 1 commit into from
Aug 28, 2013

Conversation

user52
Copy link
Contributor

@user52 user52 commented Aug 28, 2013

Fix "Notice: Array to string conversion" when $value in curl_setopt($ch, CURLOPT_POSTFIELDS, $value) is an array that contains an empty array. Example that causes Notice:

$data = array(
'foo' => 'bar',
'baz' => array(
),
);

Fix "Notice: Array to string conversion" when $value in curl_setopt($ch, CURLOPT_POSTFIELDS, $value) is an array that contains an empty array. Example that causes Notice:

$data = array(
    'foo' => 'bar',
    'baz' => array(
    ),
);
php-curl-class pushed a commit that referenced this pull request Aug 28, 2013
Fix "Notice: Array to string conversion"
@php-curl-class php-curl-class merged commit 756fec2 into php-curl-class:master Aug 28, 2013
zachborboa added a commit that referenced this pull request Aug 19, 2022
PHP 8 error messages:
    TypeError: array_keys(): Argument #1 ($array) must be of type array, stdClass given
    TypeError: array_values(): Argument #1 ($array) must be of type array, stdClass given

PHP 7 error messages:
    TypeError: array_keys() expects parameter 1 to be array, object given
    TypeError: array_values() expects parameter 1 to be array, object given
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants