Opened 9 months ago
Last modified 4 months ago
#9199 assigned task
Stub declarations for BuddyPress core functions, classes and interfaces
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Up Next | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Cc: |
Description (last modified by )
A while ago I tried to setup BuddyPress with PHPStan in the WPGraphQL BuddyPress plugin and realized there was no stub for BuddyPress.
A git repo was created last year, https://github.com/buddypress/buddypress-stubs, to hold those stubs. But I learned afterwards that BuddyPress' functions and classes have a lot of incorrect information. So it felt not ideal to create stubs of incomplete and/or incorrect data.
As part of BuddyPress 14 (see #9164 and #7228), I've started to fix those issues but it will take a while until we have all issues resolved.
This ticket was created as a reminder, and for visibility. The task of creating the stubs is pretty straightforward, so currently the only impediment is the correctness of the signatures of functions, classes, and interfaces.
Bumping this since it is blocked untill all WPCS and Docblock issues are resolved.