Skip to content

Commit

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

* Fix all autofixable CS issues
  • Loading branch information
schlessera authored Aug 30, 2023
1 parent ce67f85 commit f470d04
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 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 @@
"wp-cli/wp-cli": "^2.5"
},
"require-dev": {
"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 shell-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
return;
}

$wpcli_shell_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
$wpcli_shell_autoloader = __DIR__ . '/vendor/autoload.php';
if ( file_exists( $wpcli_shell_autoloader ) ) {
require_once $wpcli_shell_autoloader;
}
Expand Down
1 change: 0 additions & 1 deletion src/WP_CLI/Shell/REPL.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ private static function starts_with( $tokens, $line ) {
return preg_match( "/^($tokens)[\(\s]+/", $line );
}
}

0 comments on commit f470d04

Please sign in to comment.