Skip to content

http_build_query() default null argument for $arg_separator is implicitly coerced to string #12745

Closed
@mr-bz

Description

@mr-bz

Description

The following code:

<?php
http_build_query(
                $array,
                encoding_type: PHP_QUERY_RFC3986
            )

Resulted in this output:

http_build_query(): Passing null to parameter #3 ($arg_separator) of type ?string is deprecated

But I expected this output instead:

PHP Version

8.3

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions