Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on run command valet install #77

Closed
marcelohfilho opened this issue Jun 14, 2017 · 2 comments
Closed

Error on run command valet install #77

marcelohfilho opened this issue Jun 14, 2017 · 2 comments

Comments

@marcelohfilho
Copy link

PHP Fatal error: Cannot declare class Facade, because the name is already in use in /home/user/.config/composer/vendor/jmarcher/valet-linux/cli/includes/facades.php on line 3
PHP Stack trace:
PHP 1. {main}() /home/user/.config/composer/vendor/cpriego/valet-linux/cli/valet.php:0
PHP 2. require() /home/user/.config/composer/vendor/cpriego/valet-linux/cli/valet.php:10
PHP 3. ComposerAutoloaderInit0b2dbe3729bd3fa99906a36570ae8788::getLoader() /home/user/.config/composer/vendor/autoload.php:7
PHP 4. composerRequire0b2dbe3729bd3fa99906a36570ae8788() /home/user/.config/composer/vendor/composer/autoload_real.php:56

I'm using elementaryOS (based on Ubuntu), valet version is 2.2.3 and PHP is 7.1

@marcelohfilho
Copy link
Author

On PHP 7.0 (7.0.20-2) the error message changes

PHP Fatal error: Cannot declare class CommandLine, because the name is already in use in /home/user/.config/composer/vendor/jmarcher/valet-linux/cli/includes/facades.php on line 43
PHP Stack trace:
PHP 1. {main}() /home/user/.config/composer/vendor/cpriego/valet-linux/cli/valet.php:0
PHP 2. require() /home/user/.config/composer/vendor/cpriego/valet-linux/cli/valet.php:10
PHP 3. ComposerAutoloaderInit0b2dbe3729bd3fa99906a36570ae8788::getLoader() /home/user/.config/composer/vendor/autoload.php:7
PHP 4. composerRequire0b2dbe3729bd3fa99906a36570ae8788() /home/user/.config/composer/vendor/composer/autoload_real.php:56

@TheNodi
Copy link
Collaborator

TheNodi commented Jun 14, 2017

You need to remove jmarcher/valet-linux, the two packages aren't compatible.

composer global remove jmarcher/valet-linux

@TheNodi TheNodi closed this as completed Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants