We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f31aa0 commit ae700bfCopy full SHA for ae700bf
1 file changed
src/WP_CLI/Shell/REPL.php
@@ -49,14 +49,15 @@ public function start() {
49
if ( 'exit' === trim( $__repl_input_line ) ) {
50
return 0;
51
}
52
- $__repl_input_line = rtrim( $__repl_input_line, ';' ) . ';';
53
54
// Check for special restart command
55
if ( 'restart' === trim( $__repl_input_line ) ) {
56
WP_CLI::log( 'Restarting shell...' );
57
return self::EXIT_CODE_RESTART;
58
59
+ $__repl_input_line = rtrim( $__repl_input_line, ';' ) . ';';
60
+
61
if ( self::starts_with( self::non_expressions(), $__repl_input_line ) ) {
62
ob_start();
63
// phpcs:ignore Squiz.PHP.Eval.Discouraged -- This is meant to be a REPL, no way to avoid eval.
0 commit comments