Skip to content

Make the required argument elements required - #6

Closed
johnbillion wants to merge 5 commits into
justlevine:trunkfrom
johnbillion:required-required
Closed

Make the required argument elements required#6
johnbillion wants to merge 5 commits into
justlevine:trunkfrom
johnbillion:required-required

Conversation

@johnbillion

Copy link
Copy Markdown

We can help PHPStan users by making these elements required. It doesn't affect the guard conditions in WP_Ability::prepare_properties() because the args array isn't documented there.

@github-actions

github-actions Bot commented Sep 22, 2025

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: justlevine <justlevine@git.wordpress.org>
Co-authored-by: johnbillion <johnbillion@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@justlevine
justlevine changed the base branch from feat/require-permission_callback to trunk September 27, 2025 22:16
@justlevine

Copy link
Copy Markdown
Owner

Hey sorry @johnbillion I was OOO last week and WordPress#73 got merged without this. I'll cherrypick this onto the core-repo trunk when I have some time - unless you beat me to it ;-)

@justlevine

Copy link
Copy Markdown
Owner

cherrypicked to WordPress#97

@justlevine justlevine closed this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants