cannot run vendor/bin/homestead make getting error yaml.php line 52

家住魔仙堡 提交于 2020-02-02 17:31:18

问题


I'm trying to install laravel/homestead and gettiong this error

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

I'm running Laravel Homestead 8.3.1 and as i have php 5.6 locally im emulating php 7 in my composer.json file so previously i ran

composer config platform.php 7.2
composer update phpunit/phpunit --ignore-platform-reqs

and then

composer require laravel/homestead --dev
ls laravel/bin/homestead
vendor/bin/homestead

and the last one

vendor/bin/homestead make 

where i'm getting the error

I'm in windows 10 if it matters

来源:https://stackoverflow.com/questions/55824538/cannot-run-vendor-bin-homestead-make-getting-error-yaml-php-line-52

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!