Installer Fix - Exception ->" Argument #1 ($command) must be of type array, string given" #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Error handling during execution of "php artisan menu:install" : "Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in /path/of/the/application/vendor/codexshaper/laravel-menu
-builder/src/Commands/InstallMenuBuilder.php on line 75.
`-> % php artisan menu:install
Publishing the MenuBuilder assets, database, and config files
Copied Directory [\vendor\codexshaper\laravel-menu-builder\database\seeds] To [\database\seeds]
Publishing complete.
Migrating the database tables into your application
Migrating: 2019_08_22_221932_create_menus_table
Migrated: 2019_08_22_221932_create_menus_table (641.77ms)
Migrating: 2019_08_27_165403_create_menu_items_table
Migrated: 2019_08_27_165403_create_menu_items_table (740.65ms)
Migrating: 2019_08_27_165403_create_menu_settings_table
Migrated: 2019_08_27_165403_create_menu_settings_table (1,351.78ms)
Dumping the autoloaded files and reloading all new files
TypeError
Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in \path\of\the\application\vendor\codexshaper\laravel-menu
-builder\src\Commands\InstallMenuBuilder.php on line 75
at \path\of\the\application\vendor\symfony\process\Process.php:141
137▕ * @param int|float|null $timeout The timeout in seconds or null to disable
138▕ *
139▕ * @throws LogicException When proc_open is not installed
140▕ */
➜ 141▕ public function __construct(array $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60)
142▕ {
143▕ if (!\function_exists('proc_open')) {
144▕ throw new LogicException('The Process class relies on proc_open, which is not available on your PHP installation.');
145▕ }
1 \path\of\the\application\vendor\codexshaper\laravel-menu-builder\src\Commands\InstallMenuBuilder.php:75
Symfony\Component\Process\Process::__construct(""D:\php8_0_3\php.exe" J:\prj_developer\www\amago_sgi/composer.phar dump-autoload")
2 \path\of\the\application\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
CodexShaper\Menu\Commands\InstallMenuBuilder::handle(Object(Illuminate\Filesystem\Filesystem))
`