Skip to content

Commit cae867c

Browse files
authored
Fix Laravel installer on Windows WSL (#385)
* Fix test name * Use rtrim instead of mb_trim
1 parent 4e355ef commit cae867c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
193193
$this->validateDatabaseOption($input);
194194
$this->validateStackOption($input);
195195

196-
$name = mb_rtrim($input->getArgument('name'), '/\\');
196+
$name = rtrim($input->getArgument('name'), '/\\');
197197

198198
$directory = $this->getInstallationDirectory($name);
199199

tests/NewCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function test_it_can_scaffold_a_new_laravel_app()
3737
$this->assertFileExists($scaffoldDirectory.'/.env');
3838
}
3939

40-
public function test_it_can_chops_trailing_slash_from_name()
40+
public function test_it_can_chop_trailing_slash_from_name()
4141
{
4242
if ($this->runOnValetOrHerd('paths') === false) {
4343
$this->markTestSkipped('Require `herd` or `valet` to resolve `APP_URL` using hostname instead of "localhost".');

0 commit comments

Comments
 (0)