我正在尝试安装laravel / homestead并获取该错误
HP@carlas MINGW64 /c/vagrant-Laravel (master)
$ vendor/bin/homestead make
PHP Fatal error: Default value for parameters with a class type hint can only be NULL in C:\vagrant-Laravel\vendor\symfony\yaml\Yaml.php on line 52
Fatal error: Default value for parameters with a class type hint can only be NULL in C:\vagrant-Laravel\vendor\symfony\yaml\Yaml.php on line 52
我正在运行Laravel Homestead 8.3.1,因为我在本地composer.json文件中有php 5.6本地模拟php 7,所以以前我运行过
composer config platform.php 7.2
composer update phpunit/phpunit --ignore-platform-reqs
然后
composer require laravel/homestead --dev
ls laravel/bin/homestead
vendor/bin/homestead
最后一个
vendor/bin/homestead make
我遇到错误的地方
如果有问题,我就在Windows 10中