Opened 2 years ago
Last modified 21 months ago
#9199 assigned task
Stub declarations for BuddyPress core functions, classes and interfaces
| Reported by: | espellcaste | Owned by: | espellcaste |
|---|---|---|---|
| Priority: | normal | Milestone: | Up Next |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Bumping this since it is blocked untill all WPCS and Docblock issues are resolved.