Skip to content

Commit 74c8f12

Browse files
authored
Merge pull request #77 from wp-cli/fix-phpstan
Fix newly reported PHPStan errors
2 parents db40ec1 + 1a63bff commit 74c8f12

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"wp-cli/wp-cli": "^2.12"
15+
"wp-cli/wp-cli": "^2.13"
1616
},
1717
"require-dev": {
1818
"wp-cli/entity-command": "^1.3 || ^2",

src/Rewrite_Command.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,7 @@ public function structure( $args, $assoc_args ) {
164164
}
165165
}
166166

167-
/**
168-
* @var object{stdout: string, stderr: string, return_code: int} $process_run
169-
*/
170-
$process_run = WP_CLI::runcommand( $cmd );
171-
if ( ! empty( $process_run->stderr ) ) {
172-
// Strip "Warning: "
173-
WP_CLI::warning( substr( $process_run->stderr, 9 ) );
174-
}
167+
WP_CLI::runcommand( $cmd );
175168
}
176169

177170
/**

0 commit comments

Comments
 (0)