Skip to content

Commit 92713f8

Browse files
committed
chore: update changeset for PR #3367
1 parent 6d241b3 commit 92713f8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.changesets/2025-04-28-pr-3367.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "chore: improve type-safety for class"
3+
pr: 3367
4+
author: "justlevine"
5+
type: "chore"
6+
breaking: false
7+
---
8+
9+
## What does this implement/fix? Explain your changes.
10+
11+
This PR:
12+
13+
- Inlines all (backwards-compatible) PHPDoc types into their native PHP types
14+
- Replaces the use of \`mixed\` with the specific array shape (_where possible_)
15+
- Adds type-narrowing to \`WPGraphQL::get_allowed_post_types()\` and \`::get_allowed_taxonomies()\`, so the correct traversable type of the array is hinted correctly.
16+
17+
References to these functions have been cleaned up accordingly (usually just by removing a \`/** @var {...} */\` typehint.
18+
19+
There are _no_ breaking changes in this PR.
20+
21+
22+
## Does this close any currently open issues?
23+
24+
25+
26+
## Any other comments?

0 commit comments

Comments
 (0)