You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/WP_CLI/Shell/REPL.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ public function start() {
30
30
if ( self::starts_with( self::non_expressions(), $__repl_input_line ) ) {
31
31
ob_start();
32
32
try {
33
-
// phpcs:ignore Squiz.PHP.Eval.Discouraged,WordPress.PHP.NoSilencedErrors.Discouraged -- This is meant to be a REPL, no way to avoid eval. Suppress PHP warnings to show clean error messages.
34
-
@eval( $__repl_input_line );
33
+
// phpcs:ignore Squiz.PHP.Eval.Discouraged -- This is meant to be a REPL, no way to avoid eval.
34
+
eval( $__repl_input_line );
35
35
} catch ( \Throwable$e ) {
36
36
// Display the error message but continue the session
// Write directly to STDOUT, to sidestep any output buffers created by plugins
50
50
ob_start();
51
51
try {
52
-
// phpcs:ignore Squiz.PHP.Eval.Discouraged,WordPress.PHP.NoSilencedErrors.Discouraged -- This is meant to be a REPL, no way to avoid eval. Suppress PHP warnings to show clean error messages.
0 commit comments