Skip to content

sqlsrv_fetch_array(): array but can also return null and false #5637

Description

@1stthomas

Affected page

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

Issue description

The function sqlsrv_fetch_array() is only defined with the return type array. Looking to the the return value description of this page it states:

Returns an array on success, null if there are no more rows to return, and false if an error occurs.

Steps to reproduce

N/A

Suggested fix

Expand the return type of the function definition to sqlsrv_fetch_array(): array|false|null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: VerifiedbugDocumentation contains incorrect information

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions