Skip to content

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

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.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions