Skip to content

Commit

Permalink
Merge pull request ampproject#7885 from ampproject/dependabot/compose…
Browse files Browse the repository at this point in the history
…r/php-stubs/wordpress-stubs-6.6.2

Bump php-stubs/wordpress-stubs from 6.5.3 to 6.6.2
  • Loading branch information
westonruter authored Nov 7, 2024
2 parents e00dff4 + 18d17a2 commit ff7ed30
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
19 changes: 10 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/OptionsRESTController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function get_items_permissions_check( $request ) { // phpcs:ignore Variab
* Retrieves all AMP plugin options.
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
* @return WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function get_items( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
$options = AMP_Options_Manager::get_options();
Expand Down Expand Up @@ -257,7 +257,7 @@ private function get_nested_supportable_templates( $supportable_templates, $pare
* Updates AMP plugin options.
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
* @return WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function update_items( $request ) {
$params = $request->get_params();
Expand Down
4 changes: 2 additions & 2 deletions src/Validation/ScannableURLsRestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function get_items_permissions_check( $request ) {
* 'search') and a URL to a corresponding AMP page (`amp_url`).
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
* @return WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function get_items( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable

Expand Down Expand Up @@ -177,7 +177,7 @@ function ( $item ) use ( $request ) {
*
* @param array $item Scannable URL entry.
* @param WP_REST_Request $request Request object.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
* @return WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function prepare_item_for_response( $item, $request ) {
$item = wp_array_slice_assoc( $item, [ 'url', 'type', 'label' ] );
Expand Down
2 changes: 1 addition & 1 deletion src/Validation/ValidationCountsRestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function get_items_permissions_check( $request ) { // phpcs:ignore Variab
* Retrieves total unreviewed count for validation URLs and errors.
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
* @return WP_REST_Response Response object on success, or WP_Error object on failure.
*/
public function get_items( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
$unreviewed_validated_url_count = AMP_Validated_URL_Post_Type::get_validation_error_urls_count();
Expand Down

0 comments on commit ff7ed30

Please sign in to comment.