Skip to content

Commit b082258

Browse files
authored
Add casting
1 parent 90eefd1 commit b082258

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Plugin_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ public function activate( $args, $assoc_args = [] ) {
404404

405405
// If the error is due to unexpected output, display it for debugging
406406
if ( 'unexpected_output' === $result->get_error_code() ) {
407+
/**
408+
* @var string $output
409+
*/
407410
$output = $result->get_error_data();
408411
if ( ! empty( $output ) ) {
409412
WP_CLI::debug( "Unexpected output: {$output}", 'plugin' );

0 commit comments

Comments
 (0)