sqlsrv_fetch_array(): array but can also return null and false
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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