php / php/doc-extensions

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

Open Beginner friendly
#28 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
XML
Stars
2
Forks
6
Avg merge
1d 14h
Merged PRs (30d)
5

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the affected sqlsrv_fetch_array() documentation page and locate its function definition and return-value description. Update the definition to include array, false, and null, then verify that the rendered documentation matches the stated behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.