Skip to content

Commit 6fcf2d6

Browse files
committed
Exclude WP_CLI symbols from scoping
1 parent fa08eb1 commit 6fcf2d6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scoper.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,16 @@
5858
], // list<string|regex>
5959
'exclude-constants' => array_merge($wp_constants, [
6060
'WC_VERSION',
61+
'WP_CLI',
6162
]), // list<string|regex>
6263
'exclude-classes' => array_merge($wp_classes, [
6364
'WooCommerce',
6465
'/^WC_/',
66+
'/^WP_CLI/',
6567
]), // list<string|regex>
6668
'exclude-functions' => array_merge($wp_functions, [
6769
'/^wc/',
70+
'/^WP_CLI/',
6871
]), // list<string|regex>
6972

7073
'expose-global-constants' => false, // bool

0 commit comments

Comments
 (0)