Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Aug 18, 2024
1 parent e8923ab commit 5ec9d2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require-dev": {
"wp-cli/entity-command": "2.5",
"wp-cli/scaffold-package-command": "^2",
"wp-cli/wp-cli-tests": "^4"
"wp-cli/wp-cli-tests": "dev-main"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
2 changes: 2 additions & 0 deletions src/DatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public function reset( $args, $assoc_args ) {
'author' => null,
);

str_contains( 'abc', '' );

Check failure on line 38 in src/DatabaseCommand.php

View workflow job for this annotation

GitHub Actions / code-quality / PHPCS

The function str_contains() is not present in PHP version 7.4 or earlier

$assoc_args = \wp_parse_args( $assoc_args, $defaults );

$author = $assoc_args['author'];
Expand Down

0 comments on commit 5ec9d2e

Please sign in to comment.