Skip to content

Commit b1b186b

Browse files
committed
Update composer path on findComposer
1 parent e22bcc9 commit b1b186b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/NewCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,10 @@ protected function getVersion(InputInterface $input)
219219
*/
220220
protected function findComposer()
221221
{
222-
if (file_exists(getcwd().'/composer.phar')) {
223-
return '"'.PHP_BINARY.'" composer.phar';
222+
$composerPath = getcwd().'/composer.phar';
223+
224+
if (file_exists($composerPath)) {
225+
return '"'.PHP_BINARY.'" '.$composerPath;
224226
}
225227

226228
return 'composer';

0 commit comments

Comments
 (0)