-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phan: Fix errant extra params in function calls (#41263)
* Remove extra param on remove_filter/remove_action There's no arg count when removing. * Remove extra param from rest_ensure_response That function doesn't allow a status code to be passed. Presumably we could override the WP_REST_Response status and force 200, but passing it through has worked so far, so keeping it that way. * Remove other stray args In most cases, these appear to be due to refactors. * Another stray arg * Suppress things that confuse Phan * Fix get_avatar_url calls * arrayHasKey → assertArrayHasKey * Fix misplaced parentheses * Tighten types We're using `WP_Option`, which allows an extra param in its `get()`. * Add missing sprintf * Add unused param to allow dynamic method call * Add changelogs * Use same behaviour as trunk * Fix assertion * Add param to Storage::get and use that type as before * Inform Phan of type rather than suppressing error * Update errant types * Update Phan baselines * More changelogs Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13079055733 Upstream-Ref: Automattic/jetpack@4b2a4a9
- Loading branch information
Showing
5 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters