Revert "Remove conditional inclusion"

This reverts commit 30afdc571d.
This commit is contained in:
Pascal Birchler 2025-07-08 17:55:47 +02:00
parent 5b86c7609a
commit 42f12caa5f
No known key found for this signature in database
GPG key ID: 0DECE73DD74E8B2F

View file

@ -230,7 +230,6 @@ if ( 'cli' === BUILD ) {
->in( WP_CLI_VENDOR_DIR . '/nb/oxymel' )
->in( WP_CLI_VENDOR_DIR . '/psr' )
->in( WP_CLI_VENDOR_DIR . '/seld' )
->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' )
->in( WP_CLI_VENDOR_DIR . '/justinrainbow/json-schema' )
->in( WP_CLI_VENDOR_DIR . '/gettext' )
->in( WP_CLI_VENDOR_DIR . '/mck89' )
@ -246,6 +245,11 @@ if ( 'cli' === BUILD ) {
->exclude( 'composer/composer/src/Composer/Question' )
->exclude( 'composer/composer/src/Composer/Repository/Pear' )
->exclude( 'composer/composer/src/Composer/SelfUpdate' );

// required by justinrainbow/json-schema v6+.
if ( is_dir( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' ) ) {
$finder->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' );
}
}

foreach ( $finder as $file ) {