Skip to content

Commit 11cc23f

Browse files
committed
Fix phar path resolution
1 parent 806b93e commit 11cc23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/boot-phar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
// Store the path to the Phar early on for `Utils\phar-safe-path()` function.
13-
define( 'WP_CLI_PHAR_PATH', getcwd() );
13+
define( 'WP_CLI_PHAR_PATH', Phar::running( true ) );
1414

1515
if ( file_exists( 'phar://wp-cli.phar/php/wp-cli.php' ) ) {
1616
define( 'WP_CLI_ROOT', 'phar://wp-cli.phar' );

0 commit comments

Comments
 (0)