Skip to content

Conversation

@IanDelMar
Copy link
Contributor

The function add_feed() always returns a string prefixed with 'do_feed_'. Therefore its return type has been narrowed to non-falsy-string.

The $callback is added to the action hook do_feed_{$feed}, so its type has been narrowed to callable(bool, string): void.

@IanDelMar IanDelMar marked this pull request as ready for review October 28, 2025 22:01
@IanDelMar
Copy link
Contributor Author

@szepeviktor this is ready.

@szepeviktor szepeviktor merged commit 65f4953 into php-stubs:master Oct 29, 2025
7 checks passed
@IanDelMar IanDelMar deleted the add_feed branch October 29, 2025 11:15
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