From 51c16eb3936c47e975ee3d6faaa7d658966ff25d Mon Sep 17 00:00:00 2001 From: Matthew Boynes Date: Tue, 24 Aug 2021 11:09:15 -0400 Subject: [PATCH] Fixes incorrect dockblock types --- inc/endpoints/class-components-endpoint.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/inc/endpoints/class-components-endpoint.php b/inc/endpoints/class-components-endpoint.php index 26d991fc..afc6f8dc 100644 --- a/inc/endpoints/class-components-endpoint.php +++ b/inc/endpoints/class-components-endpoint.php @@ -106,8 +106,7 @@ public function register_rest_routes() { * Callback for the route. * * @param WP_REST_Request $request Request object. - * - * @return array + * @return \WP_REST_Response */ public function get_route_response( $request ) { @@ -176,13 +175,13 @@ function( $key ) { /** * Modify the output of the components route. * - * @param array $data Data for response. - * @param WP_Query $query WP_Query object corresponding - * to this request. - * @param string $context The context for this request. - * @param string $path The path for this request. - * @param WP_REST_Request $request WP_REST_Request object. - * @param \Components_Endpoint $this Current class instance. + * @param array $data Data for response. + * @param WP_Query $query WP_Query object corresponding + * to this request. + * @param string $context The context for this request. + * @param string $path The path for this request. + * @param WP_REST_Request $request WP_REST_Request object. + * @param Components_Endpoint $this Current class instance. */ $data = (array) apply_filters( 'wp_irving_components_route',