From 306ed6c86705786b2d2b6b7dc5228b8811de1586 Mon Sep 17 00:00:00 2001 From: Roy Orbitson Date: Tue, 10 Sep 2024 16:55:49 +0930 Subject: [PATCH] Missing do construct No benefit to excluding it, and trying to use it throws a parse error because of the prepended return. --- src/WP_CLI/Shell/REPL.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WP_CLI/Shell/REPL.php b/src/WP_CLI/Shell/REPL.php index f0719ca5..cc9ee064 100644 --- a/src/WP_CLI/Shell/REPL.php +++ b/src/WP_CLI/Shell/REPL.php @@ -63,6 +63,7 @@ private static function non_expressions() { 'global', 'unset', 'function', + 'do', 'while', 'for', 'foreach',