Skip to content

Commit

Permalink
phan: Update wpcom stubs (#36988)
Browse files Browse the repository at this point in the history
* phan: Update wpcom stubs
* Clean up most new Phan issues due to the new stubs.
  There are a few that seem like real errors that don't have an obvious
  fix though.
* Only use wpcom stubs in projects that need them

---------

Co-authored-by: Phabricator Bot <[email protected]>
Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
3 people authored Apr 19, 2024
1 parent aa97351 commit df21dd6
Show file tree
Hide file tree
Showing 52 changed files with 1,653 additions and 196 deletions.
4 changes: 2 additions & 2 deletions .phan/config.base.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* - exclude_file_regex: (array) Additional regexes to exclude. Will be anchored at the start.
* - file_list: (array) Additional individual files to scan.
* - parse_file_list: (array) Files to parse but not analyze. Equivalent to listing in both 'file_list' and 'exclude_analysis_directory_list'.
* - stubs: (array) Predefined stubs to load. Default is `array( 'wordpress', 'wp-cli', 'wpcom' )`.
* - stubs: (array) Predefined stubs to load. Default is `array( 'wordpress', 'wp-cli' )`.
* - akismet: Stubs from .phan/stubs/akismet-stubs.php.
* - full-site-editing: Stubs from .phan/stubs/full-site-editing-stubs.php.
* - photon-opencv: Stubs from .phan/stubs/photon-opencv-stubs.php.
Expand All @@ -45,7 +45,7 @@ function make_phan_config( $dir, $options = array() ) {
'exclude_file_regex' => array(),
'file_list' => array(),
'parse_file_list' => array(),
'stubs' => array( 'wordpress', 'wp-cli', 'wpcom' ),
'stubs' => array( 'wordpress', 'wp-cli' ),
'+stubs' => array(),
'suppress_issue_types' => array(),
'unsuppress_issue_types' => array(),
Expand Down
Loading

0 comments on commit df21dd6

Please sign in to comment.