Skip to content

Broken Function: array_combine #646

@mvhirsch

Description

@mvhirsch

Function URL

https://www.php.net/manual/en/function.array-combine.php

PHP Version

8.3

Safe Version

3.0.2

Description

Returning array|false on thecodingmachine/safe does not make sense to me.

* @return array|false Returns the combined array.

array_combine on PHP 8.1 types @return array:

* @return array Returns the combined array, FALSE if the number of elements

Looks like this is happening since 8.2.

Starting with 8.2 this method is just a wrapper to PHP's array_combine. Is it still safe to use this lib's array_combine on 8.2+?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions