Is it possible to run laravel valet as php 5.6? I can see that i have to brew link php71 in order to do a valet start as it will give php errors if not. ("Fatal error: Default value for parameters with a class type hint can only be NULL in /Users/x/.composer/vendor/symfony/console/Application.php on line 83"
I need to use php 5.6 as it is an old project (and will be too time consuming and expensive for the business right now to update)
I have tried to just brew unlink php71 and brew link php56 - but then it gives the error mentioned above.
I think you can get around that if you use al older version of valet. Note that the thread you mention is over a year old.
What kind of project is this? If it's a Laravel project you can simply run php artisan serve and you only need to setup a database locally to make it work.
Oh yes, I probably could do that - thank you. Is it easy to change version?
And it is an old magento webshop for work. I use laravel and valet for personal projects. So when I needed a development environment for work I thought of valet, as it is (usually) easy to use.
It seems like the other components from composer still requires php 7 on 2.0.4:
PHP Fatal error: Default value for parameters with a class type hint can only be NULL in /Users/jimmi/.composer/vendor/symfony/console/Application.php on line 83