-
Notifications
You must be signed in to change notification settings - Fork 466
chore: narrow/fix php types on WPGraphQL, Server, Utils namespaces #3368
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
chore: narrow/fix php types on WPGraphQL, Server, Utils namespaces #3368
Conversation
The merge-base changed after approval.
It's been years since I touched the Router class. Can't say I understand it either 😆 Some of the inconsistencies like instantiating AppContext 2x were just symptoms of refactoring in the early days and not fully cleaning up. |
|
@justlevine are you looking for anything specific in regards to feedback? Changes look good to me. I'd be happy to merge now or wait for you to take another pass. |
|
Code Climate has analyzed commit dc582d7 and detected 0 issues on this pull request. View more on Code Climate. |
Nope it's ready to merge. Diff on this is already getting messy, a future pass (and perhaps some deeper cleanup) can come later. |
What does this implement/fix? Explain your changes.
This PR audits and fixes the PHPDoc types in the
WPGraphQL,WPGraphQL\Server,WPGraphQL\Utilsnamespaces, in the following ways:mixedwith a more specific type whenever possible.Note: Due to cross-class dependencies, numerous uses of
mixedwere left as is, specifically regarding theRouterclass.There are no breaking changing in this PR. I've left a comment on the (limited) code-related changes.
Important
This PR is based on #3367 which should be merged first.Relevant diff: f663ebaDoes this close any currently open issues?
Any other comments?
This is a "first pass" because I really dont understand the
Routerclass, and its reuse of the same parameters at different points in the lifecycle. Will take a second pass (in a follow up PR)once I get clarity from @jasonbahl✔️