Skip to content

Commit 87a33d4

Browse files
committed
Keep symfony/polyfill-intl-normalizer in Phar
1 parent 3428305 commit 87a33d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

utils/make-phar.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ function add_file( $phar, $path ) {
6969
'\/nb\/oxymel\/',
7070
'-command\/src\/',
7171
'\/wp-cli\/[^\n]+?-command\/',
72-
'\/symfony\/(?!deprecation-contracts|finder|polyfill-mbstring|polyfill-php80|process)\'',
72+
'\/symfony\/(?!deprecation-contracts|finder|polyfill-intl-normalizer|polyfill-mbstring|polyfill-php80|process)\'',
7373
'\/(?:dealerdirect|squizlabs|wimg)\/',
7474
'\/yoast\/',
7575
];
7676
} else {
7777
$strips = [
7878
'\/(?:behat|gherkin)\/src\/',
7979
'\/phpunit\/',
80-
'\/symfony\/(?!console|deprecation-contracts|filesystem|finder|polyfill-mbstring|polyfill-php80|process)\'',
80+
'\/symfony\/(?!console|deprecation-contracts|filesystem|finder|polyfill-intl-normalizer|polyfill-mbstring|polyfill-php80|process)\'',
8181
'\/composer\/spdx-licenses\/',
8282
'\/Composer\/(?:Command\/|Compiler\.php|Console\/|Downloader\/Pear|Installer\/Pear|Question\/|Repository\/Pear|SelfUpdate\/)',
8383
'\/(?:dealerdirect|squizlabs|wimg)\/',
@@ -204,6 +204,10 @@ function get_composer_versions( $current_version ) {
204204
$finder
205205
->in( WP_CLI_VENDOR_DIR . '/symfony/deprecation-contracts' );
206206
}
207+
if ( is_dir( WP_CLI_VENDOR_DIR . '/symfony/polyfill-intl-normalizer' ) ) {
208+
$finder
209+
->in( WP_CLI_VENDOR_DIR . '/symfony/polyfill-intl-normalizer' );
210+
}
207211
if ( is_dir( WP_CLI_VENDOR_DIR . '/symfony/polyfill-php80' ) ) {
208212
$finder
209213
->in( WP_CLI_VENDOR_DIR . '/symfony/polyfill-php80' );

0 commit comments

Comments
 (0)