File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
251255foreach ( $ finder as $ file ) {
You can’t perform that action at this time.
0 commit comments