Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Lock file maintenance * Address Phan issues due to php-stubs/wordpress-stubs upgrade * Some typecasts to account for better Core type delcarations. * Suppress `current_user_can_for_blog` → `current_user_can_for_site` until we drop 6.6 support. * Hack around Core SimplePie renaming Core upgraded their copy-pasted SimplePie library, which included renaming all the classes. While they did provide back-compat aliases, we run into a few problems: * A method parameter type of `SimplePie_Item` won't accept `SimplePie\Item`, while `SimplePie\Item` won't work on WP 6.6. * It's really hard to make Phan happy for both the two runs (with 6.7 stubs and with 6.6 stubs). The best I was able to come up with was this: * Turn on `enable_class_alias_support`. * Alias `Jetpack\SimplePie\<name>` to the appropriate classes, and use those aliases everywhere. * Have phan load only one of the two alias files, depending on which run it's doing. * Merge all the test mocks into one file and load them from bootstrap.php. --------- Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Brad Jorsch <brad.jorsch@automattic.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12261510871 Upstream-Ref: Automattic/jetpack@ceebd52
- Loading branch information