Skip to content

Conversation

@IanDelMar
Copy link
Contributor

Narrows the return type of get_post_ancestors() from int[] to list<int>.

Starting from an empty array, the returned array is built by adding ancestors using $ancestors[] = $id; therefore it is a list.

@szepeviktor szepeviktor merged commit 17066eb into php-stubs:master Sep 7, 2025
7 checks passed
@IanDelMar IanDelMar deleted the get_post_ancestors branch September 7, 2025 02:29
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