Add /recommendations/evaluation endpoint handling #70930
Annotations
8 errors
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L83
TypeError PhanTypeMismatchReturnProbablyReal Returning new WP_Error('missing_goals', 'Goals are required', ['status'=>400]) of type \WP_Error but evaluate_site_recommendations() is declared to return array (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L93
TypeError PhanTypeMismatchReturnProbablyReal Returning new WP_Error('recommendations_evaluation_fetch_failed', 'Evaluation processing failed', ['status'=>($response_code ? $response_code : 400)]) of type \WP_Error but evaluate_site_recommendations() is declared to return array (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L96
ParamError PhanParamTooMany Call with 2 arg(s) to \rest_ensure_response($response) which only takes 1 arg(s) defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:134216
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L96
TypeError PhanTypeMismatchReturn Returning rest_ensure_response($body, 200) of type \WP_Error|\WP_REST_Response but evaluate_site_recommendations() is declared to return array
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L110
TypeError PhanTypeMismatchReturnProbablyReal Returning new WP_Error('missing_recommendations', 'Recommendations are required', ['status'=>400]) of type \WP_Error but save_evaluation_recommendations() is declared to return array (no real type) (the inferred real return type has nothing in common with the declared phpdoc return type)
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L115
ParamError PhanParamTooMany Call with 2 arg(s) to \rest_ensure_response($response) which only takes 1 arg(s) defined at /home/runner/work/jetpack/jetpack/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php:134216
|
projects/packages/my-jetpack/src/class-rest-recommendations-evaluation.php#L115
TypeError PhanTypeMismatchReturn Returning rest_ensure_response(['success'=>true], 200) of type \WP_Error|\WP_REST_Response but save_evaluation_recommendations() is declared to return array
|
|
The logs for this run have expired and are no longer available.
Loading