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 8da0404
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
"homepage": "https://github.com/ernilambar/database-command",
"require": {
"wp-cli/wp-cli": "^2.9"
"wp-cli/wp-cli": "^2.11"
},
"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 8da0404

Please sign in to comment.