Skip to content

Commit 0041266

Browse files
committed
Merge branch 'kirtangajjar-fix_cli_update_bug' into develop-v4
2 parents 1b86d17 + 670fb78 commit 0041266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php/commands/src/CLI_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ public function update( $_, $assoc_args ) {
259259
if ( false === chmod( $temp, $mode ) ) {
260260
EE::error( sprintf( 'Cannot chmod %s.', $temp ) );
261261
}
262-
class_exists( '\cli\Colors' ); // This autoloads \cli\Colors - after we move the file we no longer have access to this class.
262+
class_exists( '\cli\Streams' ); // This autoloads \cli\Streams - after we move the file we no longer have access to this class.
263+
class_exists( '\cli\Colors' ); // This autoloads \cli\Colors
263264
if ( false === rename( $temp, $old_phar ) ) {
264265
EE::error( sprintf( 'Cannot move %s to %s', $temp, $old_phar ) );
265266
}

0 commit comments

Comments
 (0)