Skip to content

array_flip allegedly can return null #1178

Description

@Tobion

The doc about array_flip https://www.php.net/manual/en/function.array-flip.php says it can return null on failure.
Is that true? I could not find such case in the source code.
If it's true, shouldn't the function signature be changed to reflect the nullable return value?

So either the signature is not correct or the null return value is not true.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions