Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump php-stubs/wordpress-stubs from 6.5.3 to 6.6.2 #7885

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading