Skip to content

Commit 42f12ca

Browse files
committed
Revert "Remove conditional inclusion"
This reverts commit 30afdc5.
1 parent 5b86c76 commit 42f12ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/make-phar.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ function get_composer_versions( $current_version ) {
230230
->in( WP_CLI_VENDOR_DIR . '/nb/oxymel' )
231231
->in( WP_CLI_VENDOR_DIR . '/psr' )
232232
->in( WP_CLI_VENDOR_DIR . '/seld' )
233-
->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' )
234233
->in( WP_CLI_VENDOR_DIR . '/justinrainbow/json-schema' )
235234
->in( WP_CLI_VENDOR_DIR . '/gettext' )
236235
->in( WP_CLI_VENDOR_DIR . '/mck89' )
@@ -246,6 +245,11 @@ function get_composer_versions( $current_version ) {
246245
->exclude( 'composer/composer/src/Composer/Question' )
247246
->exclude( 'composer/composer/src/Composer/Repository/Pear' )
248247
->exclude( 'composer/composer/src/Composer/SelfUpdate' );
248+
249+
// required by justinrainbow/json-schema v6+.
250+
if ( is_dir( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' ) ) {
251+
$finder->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' );
252+
}
249253
}
250254

251255
foreach ( $finder as $file ) {

0 commit comments

Comments
 (0)