Publicize: Move the publicize-connections endpoint to the package #80599
Annotations
9 errors and 1 warning
Run phan:
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)
|
Run phan:
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,].
|
Run phan:
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
|
Run phan:
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
|
Run phan:
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
|
Run phan:
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
|
Run phan:
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
|
Run phan:
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()
|
Run phan
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading