Skip to content

Commit 306ed6c

Browse files
authored
Missing do construct
No benefit to excluding it, and trying to use it throws a parse error because of the prepended return.
1 parent 6293374 commit 306ed6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WP_CLI/Shell/REPL.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ private static function non_expressions() {
6363
'global',
6464
'unset',
6565
'function',
66+
'do',
6667
'while',
6768
'for',
6869
'foreach',

0 commit comments

Comments
 (0)