Skip to content

Publicize: Move the publicize-connections endpoint to the package #80599

Publicize: Move the publicize-connections endpoint to the package

Publicize: Move the publicize-connections endpoint to the package #80599

Triggered via pull request December 16, 2024 23:37
Status Failure
Total duration 11m 5s
Artifacts 1

tests.yml

on: pull_request
Determine tests matrix
9s
Determine tests matrix
Storybook tests
2m 45s
Storybook tests
Check plugin monorepo dep versions
33s
Check plugin monorepo dep versions
Static analysis
4m 40s
Static analysis
Matrix: run-tests
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 18 warnings
Static analysis: projects/packages/publicize/src/class-publicize-setup.php#L40
NOOPError PhanNoopNew Unused result of new object creation expression in new WPCOM_REST_API_V2_Endpoint_List_Publicize_Connections() (this may be called for the side effects of the non-empty constructor or destructor)
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L60
Plugin PhanPluginMixedKeyNoKey Should not mix array entries of the form [key => value,] with entries of the form [value,].
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L196
UndefError PhanUndeclaredMethod Call to undeclared method \Automattic\Jetpack\Publicize\Publicize::get_external_handle
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L199
AccessError PhanAccessMethodPrivate Cannot access private method \Automattic\Jetpack\Publicize\Publicize::get_profile_picture defined at src/class-publicize-base.php:611
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L235
TypeError PhanTypeMismatchArgument Argument 2 ($value) is count($items) of type int but \WP_REST_Response::header() takes string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:39562
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L236
TypeError PhanTypeMismatchArgument Argument 2 ($value) is 1 of type 1 but \WP_REST_Response::header() takes string defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:39562
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L273
ParamError PhanParamSignatureMismatch Declaration of function prepare_item_for_response(array $connection, \WP_REST_Request $request) : array should be compatible with function prepare_item_for_response(mixed $item, \WP_REST_Request $request) : \WP_Error|\WP_REST_Response defined in /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:70536
Static analysis: projects/packages/publicize/src/class-wpcom-rest-api-v2-endpoint-list-publicize-connections.php#L319
UndefError PhanUndeclaredFunction Call to undeclared function \wpcom_rest_api_v2_load_plugin()
Static analysis
Process completed with exit code 1.
Determine tests matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check plugin monorepo dep versions
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Storybook tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
JS tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 7.4 WP latest with WooCommerce
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Static analysis
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.2 WP previous
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.4 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.2 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.3 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 7.3 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.0 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 7.2 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.1 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.1 WP latest with wpcomsh
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 7.4 WP latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP tests: PHP 8.2 WP trunk
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Code coverage
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
Code coverage Expired
4.87 MB