Skip to content

Conversation

IanDelMar
Copy link
Contributor

  • WP_Dependencies::$groups - narrowed from string[] to array<string, int|false>. Keys are handles (strings).
  • WP_Dependencies::get_etag() - return type narrowed from string to non-falsy-string, as it always returns 'W/"' . md5( $etag ) . '"'.
  • WP_Dependencies::query() - conditional return type:
    • Empty $handlefalse.
    • $status of registered|scripts_WP_Dependency|false.
    • Any other valid $statusbool.
    • Invalid $statusfalse.

See the class reference.

@szepeviktor
Copy link
Member

Thank you.

@szepeviktor szepeviktor merged commit 71dbd63 into php-stubs:master Aug 21, 2025
7 checks passed
@IanDelMar IanDelMar deleted the dep-query branch August 21, 2025 22:34
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