Skip to content

Commit

Permalink
phan: Update wpcom stubs (#40052)
Browse files Browse the repository at this point in the history
Co-authored-by: Phabricator Bot <phabricator@automattic.com>
  • Loading branch information
matticbot and Phabricator Bot authored Nov 5, 2024
1 parent bb42d75 commit 73c3d8e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .phan/stubs/wpcom-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* `bin/teamcity-builds/jetpack-stubs/stub-defs.php` and regenerate the stubs
* by triggering the Jetpack Staging → Update WPCOM Stubs job in TeamCity.
*
* Stubs automatically generated from WordPress.com commit b21051dd21fe3e8d217b5f54bc24faaa4109dce2.
* Stubs automatically generated from WordPress.com commit 3c8fddd7c282f57efb896f1fc60bba6e2e6aea69.
*/

namespace {
Expand Down Expand Up @@ -101,9 +101,11 @@ function __construct()
* @param string $message
* @param array $skip_connections
* @param bool $check_feature
* @param bool $sync
* @param int $_user_id
* @return array|false|WP_Error
*/
public function republicize_post($post_id, $message, $skip_connections, $check_feature = \false, $sync = \true)
public function republicize_post($post_id, $message, $skip_connections, $check_feature = \false, $sync = \true, $_user_id = \null)
{
}
}
Expand Down Expand Up @@ -1232,6 +1234,21 @@ function has_blog_sticker($sticker, $_blog_id = \NULL, $bust_the_cache = \false)
function has_any_blog_stickers(array $stickers, $_blog_id = \NULL, $bust_the_cache = \false)
{
}
class WPCOM_Feature_Flags
{
public static function get_features(): array
{
}
public static function enable_feature(string $feature): bool
{
}
public static function feature_exists(string $feature): bool
{
}
public static function is_enabled(string $feature): bool
{
}
}
/**
* @param string $new_path
* @param string $path
Expand Down

0 comments on commit 73c3d8e

Please sign in to comment.