gmp_random_seed() throws a ValueError as of PHP 8.0, return section is incorect
Open
Nobody has claimed this yet.
bug
Extension: gmp
good first issue
- Dominant language
- XML
- Stars
- 596
- Forks
- 890
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 55
Description
https://www.php.net/manual/en/function.gmp-random-seed.php
The description has : void but the Return Values section says "Returns null on success or false on failure."
It looks like a changelog needs added to note the change from false return to error: https://3v4l.org/pokBp
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
Open the gmp_random_seed() manual page and compare its description with the Return Values section. Use the linked 3v4l example to verify the PHP 8.0 behavior; done means the return documentation and a changelog entry accurately describe the change from false to an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100