usort() deprecation message in class-options-form-generator.php line 148
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 53
- Forks
- 38
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
Using PHP 8.0.9 I receive a deprecation message
[23-Jul-2021 14:44:46 UTC] PHP Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /customers/f/4/0/.../wp-content/plugins/duplicate-post/src/admin/class-options-form-generator.php on line 148
Contributor guide
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 by inspecting src/admin/class-options-form-generator.php around line 148 and identify the comparison used by usort(). Reproduce the affected admin flow on PHP 8.0.9, then verify that the deprecation message no longer appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100