-
-
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
Incompatible declaration of Psysh\Shell::hasCommand #4916
Comments
Looks like it. We can just require the newer psysh in Drush 11. PRs welcome. |
Tests fail in #4918 but errors look unrelated. |
Same issue since today for me. This is a blocker because it prevents developers from using Using Drush Commandline Tool Trying to run Fatal error: Declaration of Drush\Psysh\Shell::hasCommand($input) must be compatible with Psy\Shell::hasCommand(string $input): bool in /app/src/vendor/drush/drush/src/Psysh/Shell.php on line 37
[warning] Drush command terminated abnormally. |
@MatthieuScarset while waiting for a new release you can manually adapt the signature of |
It might be handy to add a =< 0.10 constraint to Drush 10 so people can run composer update and composer can do the correct thing. |
Sure I'd merge that PR if anyone gets inspired. |
I think that's essentially what was done in #4917, only that it hasn't been released yet. |
Thanks for clarifying. Released at https://github.com/drush-ops/drush/releases/tag/10.6.2 |
I had to upgrade Drush from version 9 to version 10 (10.6.1) in order to upgrade a site from Drupal 8 to Drupal 9. I noticed this error when trying to launch the
core:cli
command:On another site using the same version of Drush, there is no such issue. The difference appears to be that the former uses psy/psysh:0.11.0 while the latter uses psy/psysh:0.10.9 (with different method signatures indeed). Provided I did nothing wrong while updating, there might be a constraint missing somewhere in order to avoid newer versions of psy/psysh.
The text was updated successfully, but these errors were encountered: