Skip to content

Commit

Permalink
phan: Update wpcom stubs (#37077)
Browse files Browse the repository at this point in the history
* phan: Update wpcom stubs
* Update baselines

Co-authored-by: Phabricator Bot <[email protected]>
  • Loading branch information
matticbot and Phabricator Bot authored Apr 25, 2024
1 parent 7f57434 commit 35b67ec
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
25 changes: 24 additions & 1 deletion .phan/stubs/wpcom-stubs.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Stubs automatically generated from WordPress.com commit 445f4e86b57d3ab972660e191db3dd7026ddbff6.
* Stubs automatically generated from WordPress.com commit bfb2ad18f8fd904ad916be5877a31c975ae02df2.
*
* Do not edit this directly! Update the definition file in the wpcom repo at
* `bin/teamcity-builds/jetpack-stubs/stub-defs.php` and regenerate the stubs
Expand Down Expand Up @@ -412,6 +412,13 @@ function get_user_followed_blogs($user, $ignore_user_blogs)
function get_user_following_recommendations($user, $number_of_recommendations)
{
}
/**
* @param string $url
* @return array{0:int,1:int,2:int,3:string,mime:string,channels?:int,bits?:int}|false
*/
function wpcom_getimagesize($uri)
{
}
/**
* @param string $slug
*/
Expand Down Expand Up @@ -537,6 +544,14 @@ public function activate_plugin($plugin)
{
}
}
/**
* @param string $comment_content
* @param WP_Comment|null $comment_object
* @return string
*/
function comment_like_button($comment_content = '', $comment_object = \null)
{
}
class Jetpack_Custom_CSS
{
/**
Expand Down Expand Up @@ -789,6 +804,14 @@ function get_blog_count_for_user($user_id = \false)
function get_active_blogs_for_user($args = array())
{
}
/**
* @param string $url
* @return string
* @internal
*/
function staticize_subdomain($url)
{
}
/**
* @param array $classes
* @return string
Expand Down
4 changes: 2 additions & 2 deletions projects/plugins/jetpack/.phan/baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
// PhanUndeclaredProperty : 35+ occurrences
// PhanParamSignatureMismatch : 30+ occurrences
// PhanTypeMismatchPropertyProbablyReal : 30+ occurrences
// PhanUndeclaredFunction : 30+ occurrences
// PhanDeprecatedProperty : 25+ occurrences
// PhanPluginSimplifyExpressionBool : 25+ occurrences
// PhanTypeMismatchDefault : 25+ occurrences
// PhanTypeMissingReturn : 25+ occurrences
// PhanUndeclaredFunction : 25+ occurrences
// PhanUnextractableAnnotation : 25+ occurrences
// PhanUnextractableAnnotationSuffix : 25+ occurrences
// PhanMisspelledAnnotation : 20+ occurrences
Expand Down Expand Up @@ -127,7 +127,7 @@
'3rd-party/bbpress.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredFunction'],
'3rd-party/class-domain-mapping.php' => ['PhanUndeclaredClassInCallable', 'PhanUndeclaredClassMethod', 'PhanUndeclaredFunctionInCallable', 'PhanUndeclaredTypeReturnType'],
'3rd-party/class-jetpack-bbpress-rest-api.php' => ['PhanUndeclaredFunction', 'PhanUnextractableAnnotationSuffix'],
'3rd-party/class.jetpack-amp-support.php' => ['PhanDeprecatedFunction', 'PhanParamTooMany', 'PhanUndeclaredFunction', 'PhanUndeclaredFunctionInCallable'],
'3rd-party/class.jetpack-amp-support.php' => ['PhanDeprecatedFunction', 'PhanParamTooMany'],
'3rd-party/debug-bar/class-jetpack-search-debug-bar.php' => ['PhanUndeclaredExtendedClass', 'PhanUndeclaredMethod'],
'3rd-party/qtranslate-x.php' => ['PhanTypeMismatchReturn'],
'3rd-party/woocommerce.php' => ['PhanParamTooMany'],
Expand Down
5 changes: 5 additions & 0 deletions projects/plugins/jetpack/changelog/update-phan-wpcom-stubs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Update Phan baseline. No change to functionality.


0 comments on commit 35b67ec

Please sign in to comment.