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

The updateMagentoEnvFile() generates an empty env.php file #157

Open
yyevgenii opened this issue May 2, 2019 · 1 comment
Open

The updateMagentoEnvFile() generates an empty env.php file #157

yyevgenii opened this issue May 2, 2019 · 1 comment

Comments

@yyevgenii
Copy link

There's a bug in the updateMagentoEnvFile(). It generates and executed a PHP code which throws the error:

PHP Warning:  Class 'Tightenco\Collect\Support\Arr' not found in vendor/tightenco/collect/src/Collect/Support/alias.php on line 16
PHP Parse error:  syntax error, unexpected '=' in vendor/tightenco/collect/src/Collect/Support/Arr.php on line 388

As a result a generated env.php is empty.

@yyevgenii
Copy link
Author

It looks like the error appear because tightenco/collect requires PHP 7.1. But if I change the updateMagentoEnvFile() in the way to use PHP 7.1 instead of 7.0 I'm getting other errors:

PHP Warning:  Invalid argument supplied for foreach() in - on line 58
PHP Warning:  Cannot use a scalar value as an array in - on line 41
PHP Warning:  Cannot use a scalar value as an array in - on line 16
PHP Warning:  Cannot use a scalar value as an array in - on line 10

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

1 participant