Skip to content

Narrow return type of get_site_screen_help_tab_args() and get_site_screen_help_sidebar_content() #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

IanDelMar
Copy link
Contributor

The function get_site_screen_help_sidebar_content() always returns a string containing HTML markup. Therefore, its return type can be narrowed to non-falsy-string.

The function get_site_screen_help_tab_args() returns a single associative array whose values depend solely on translations. As such, its return type can be narrowed to an array shape.

@szepeviktor szepeviktor merged commit ad4fed6 into php-stubs:master Aug 6, 2025
6 checks passed
@IanDelMar IanDelMar deleted the get_site_screen_help branch August 6, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants