laravel / installer

The Laravel application installer.
https://laravel.com/docs
MIT License
640 stars 265 forks source link

the laravel installer is bring this issue #358

Open NPKIN1998 opened 1 week ago

NPKIN1998 commented 1 week ago

Installer Version

5.8.5

Description

i am getting this error on debian 12

Steps To Reproduce

➜ cd text PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/kintech/.config/composer/vendor/laravel/installer/src/NewCommand.php:813 Stack trace:

0 /home/kintech/.config/composer/vendor/laravel/installer/src/NewCommand.php(813): in_array()

1 /home/kintech/.config/composer/vendor/laravel/installer/src/NewCommand.php(246): Laravel\Installer\Console\NewCommand->isParked()

2 /home/kintech/.config/composer/vendor/symfony/console/Command/Command.php(279): Laravel\Installer\Console\NewCommand->execute()

3 /home/kintech/.config/composer/vendor/symfony/console/Application.php(1029): Symfony\Component\Console\Command\Command->run()

4 /home/kintech/.config/composer/vendor/symfony/console/Application.php(316): Symfony\Component\Console\Application->doRunCommand()

5 /home/kintech/.config/composer/vendor/symfony/console/Application.php(167): Symfony\Component\Console\Application->doRun()

6 /home/kintech/.config/composer/vendor/laravel/installer/bin/laravel(13): Symfony\Component\Console\Application->run()

7 /home/kintech/.config/composer/vendor/bin/laravel(119): include('...')

8 {main}

thrown in /home/kintech/.config/composer/vendor/laravel/installer/src/NewCommand.php on line 813

crynobone commented 5 days ago

Can you provide the output of $output:

https://github.com/laravel/installer/blob/56898ec7a62a8cf157d86c1df583b2569a63ad53/src/NewCommand.php#L811C26-L811C42