Skip to content

Commit 79b35b2

Browse files
committed
Keep symfony/deprecation-contracts in Phar
1 parent fc904e4 commit 79b35b2

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\/(?!finder|polyfill-mbstring|polyfill-php80|process)\'',
72+
'\/symfony\/(?!deprecation-contracts|finder|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|filesystem|finder|polyfill-mbstring|polyfill-php80|process)\'',
80+
'\/symfony\/(?!console|deprecation-contracts|filesystem|finder|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)\/',
@@ -200,6 +200,10 @@ function get_composer_versions( $current_version ) {
200200
$finder
201201
->in( WP_CLI_VENDOR_DIR . '/react' );
202202
}
203+
if ( is_dir( WP_CLI_VENDOR_DIR . '/symfony/deprecation-contracts' ) ) {
204+
$finder
205+
->in( WP_CLI_VENDOR_DIR . '/symfony/deprecation-contracts' );
206+
}
203207
if ( is_dir( WP_CLI_VENDOR_DIR . '/symfony/polyfill-php80' ) ) {
204208
$finder
205209
->in( WP_CLI_VENDOR_DIR . '/symfony/polyfill-php80' );

0 commit comments

Comments
 (0)