-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PHP 7.4 getDirectory() Error #5655
Comments
I turned testing for PHP 7.4 back on in #5655 and fixed the issue reported here. There is one more test failure that needs to be fixed before we can merge and make a new release. |
Thanks for fixing this issue. A new release will hopefully fix our integration tests: |
Just ran into this, and yeah, keeping Drush back at |
Describe the bug
When upgrading Drush from
11.5.1
to11.6.0
in our PHP7.4
environments we noticed that ourdrush config:import
commands have stopped working due to a fatal error (below). We believe that this commit (Line 393) adds themixed
type that was not introduced until PHP 8.The Drush Compatibility page states that Drush 11.x should be compatible with PHP 7 and the use of the
mixed
type violates that statement.PHP.net states that the
mixed
type was not introduced until PHP8.0.0
.To Reproduce
To reproduce, simply upgrade Drush to
11.6.0
in aPHP 7.4
environment and run anydrush config:import
command to import configuration.Expected behavior
The expected behavior is that the configuration would be imported.
Actual behavior
The actual behavior is that the configuration is not imported due to a TypeError.
Workaround
Upgrade PHP to
8.0.0
+ or downgrade Drush to11.5.1
.System Configuration
The text was updated successfully, but these errors were encountered: