@@ -358,7 +358,7 @@ public function install( $args, $assoc_args ) {
358358 $ this ->register_revert_shutdown_function ( $ json_path , $ composer_backup , $ revert );
359359
360360 // Add the 'require' to composer.json
361- WP_CLI ::log ( sprintf ( 'Updating %s to require the package... ' , $ json_path ) );
361+ WP_CLI ::log ( sprintf ( 'Updating %s to require the package... ' , Path:: normalize ( $ json_path ) ) );
362362 $ json_manipulator = new JsonManipulator ( $ composer_backup );
363363 $ json_manipulator ->addMainKey ( 'name ' , 'wp-cli/wp-cli ' );
364364 $ json_manipulator ->addMainKey ( 'version ' , self ::get_wp_cli_version_composer () );
@@ -835,12 +835,12 @@ public function uninstall( $args, $assoc_args ) {
835835 $ this ->register_revert_shutdown_function ( $ json_path , $ composer_backup , $ revert );
836836
837837 // Remove the 'require' from composer.json.
838- WP_CLI ::log ( sprintf ( 'Removing require statement for package \'%s \' from %s ' , $ package_name , $ json_path ) );
838+ WP_CLI ::log ( sprintf ( 'Removing require statement for package \'%s \' from %s ' , $ package_name , Path:: normalize ( $ json_path ) ) );
839839 $ manipulator = new JsonManipulator ( $ composer_backup );
840840 $ manipulator ->removeSubNode ( 'require ' , $ package_name , true /*caseInsensitive*/ );
841841
842842 // Remove the 'repository' details from composer.json.
843- WP_CLI ::log ( sprintf ( 'Removing repository details from %s ' , $ json_path ) );
843+ WP_CLI ::log ( sprintf ( 'Removing repository details from %s ' , Path:: normalize ( $ json_path ) ) );
844844 $ manipulator ->removeSubNode ( 'repositories ' , $ package_name , true /*caseInsensitive*/ );
845845
846846 file_put_contents ( $ json_path , $ manipulator ->getContents () );
0 commit comments