php - Laravel + git, contributors have different environment -
me , coworker trying use local git repo our laravel project. using ubuntu, php 5.5.9-1ubuntu4.9, , using debian php 5.4.39.
when pulled committed version, error when trying run composer update
:
user@ubuntu:/var/www/frontend$ composer install loading composer repositories package information installing dependencies (including require-dev) lock file nothing install or update generating autoload files php fatal error: class 'illuminate\support\arr' not found in /var/www/frontend/vendor/laravel/framework/src/illuminate/support/helpers.php on line 182 script php artisan clear-compiled handling post-install-cmd event returned error [runtimeexception] error output: php fatal error: class 'illuminate\support\arr' not found in /var/www/frontend/vendor/laravel/framework/src/illuminate/support/helpers.php on line 182
we have vendor folder on git, since not having isn't option us.
i guess problem different php versions. there way of setting php version manually, composer gets right dependencies?
you can set php version in composer.json file in require portion
"require": { "php": ">=5.3.0", },
Comments
Post a Comment