WP-API / WP-API/OAuth2

Deprecated PHP warnings.

Open Beginner friendly
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
175
Forks
45
Avg merge
17h 8m
Merged PRs (30d)
4

Description

Deprecated: WP\OAuth2\Types\Base::render_form(): Implicitly marking parameter $errors as nullable is deprecated, the explicit nullable type must be used instead in /wp/wp-content/plugins/oauth2/inc/types/class-base.php on line 14
 Deprecated: WP\OAuth2\Admin\handle_edit_submit(): Implicitly marking parameter $consumer as nullable is deprecated, the explicit nullable type must be used instead in /wp/wp-content/plugins/oauth2/inc/admin/namespace.php on line 193

Running PHP 8.3.

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 by reproducing the warnings on PHP 8.3, then inspect inc/types/class-base.php line 14 and inc/admin/namespace.php line 193. Check the affected parameter declarations and verify that the deprecation messages no longer appear when the relevant OAuth2 flows run.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authorization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
82/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.