Skip to content

Commit

Permalink
Update to WPCS v3 (#73)
Browse files Browse the repository at this point in the history
* Update to wp-cli-tests v4 (which requires WPCS v3)

* Rename variable to avoid PHPCS issue

---------

Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com>
  • Loading branch information
schlessera and danielbachhuber authored Aug 30, 2023
1 parent fa96740 commit 3987e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"require-dev": {
"wp-cli/entity-command": "^1.3 || ^2",
"wp-cli/wp-cli-tests": "^3.1"
"wp-cli/wp-cli-tests": "^4"
},
"config": {
"process-timeout": 7200,
Expand Down
2 changes: 1 addition & 1 deletion src/Fetch_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function ( $args ) use ( $response_size_limit ) {
remove_all_filters( 'oembed_dataparse' ); // Save a few cycles.
add_filter(
'oembed_dataparse',
function ( $return, $data, $url ) {
function ( $ret, $data, $url ) {
return $data;
},
PHP_INT_MAX,
Expand Down

0 comments on commit 3987e20

Please sign in to comment.