Skip to content

Commit 578b41b

Browse files
committed
Fix make-phar autoload stripper
1 parent 3d72571 commit 578b41b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/make-phar.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ function add_file( $phar, $path ) {
6969
'\/nb\/oxymel\/',
7070
'-command\/src\/',
7171
'\/wp-cli\/[^\n]+?-command\/',
72-
'\/symfony\/(?!finder|polyfill-mbstring)[^\/]+\/',
72+
'\/symfony\/(?!finder|polyfill-mbstring|process)\'',
7373
'\/(?:dealerdirect|squizlabs|wimg)\/',
7474
);
7575
} else {
7676
$strips = array(
7777
'\/(?:behat|gherkin)\/src\/',
7878
'\/phpunit\/',
79-
'\/symfony\/(?!console|filesystem|finder|polyfill-mbstring|process)[^\/]+\/',
79+
'\/symfony\/(?!console|filesystem|finder|polyfill-mbstring|process)\'',
8080
'\/composer\/spdx-licenses\/',
8181
'\/Composer\/(?:Command\/|Compiler\.php|Console\/|Downloader\/Pear|Installer\/Pear|Question\/|Repository\/Pear|SelfUpdate\/)',
8282
'\/(?:dealerdirect|squizlabs|wimg)\/',
@@ -169,6 +169,7 @@ function get_composer_versions( $current_version ) {
169169
->in(WP_CLI_VENDOR_DIR . '/composer')
170170
->in(WP_CLI_VENDOR_DIR . '/ramsey/array_column')
171171
->in(WP_CLI_VENDOR_DIR . '/symfony/finder')
172+
->in(WP_CLI_VENDOR_DIR . '/symfony/polyfill-ctype')
172173
->in(WP_CLI_VENDOR_DIR . '/symfony/polyfill-mbstring')
173174
->in(WP_CLI_VENDOR_DIR . '/symfony/process')
174175
->notName('behat-tags.php')

0 commit comments

Comments
 (0)