Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fixes incorrect dockblock types
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Aug 24, 2021
1 parent de12afa commit 51c16eb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions inc/endpoints/class-components-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 51c16eb

Please sign in to comment.