Skip to content

Backport PR #6538 to Drush 12.x #6547

@sonnykt

Description

@sonnykt

Describe the bug
psy/psysh 0.12.22 has a breaking change in Shell.php which was fixed in Drush 13.x (#6538) and 14.x (#6543) last week. However, the latest version of Drush 12.x is still having the error.

To Reproduce

  • Drush 12.x
$ drush php
PHP Fatal error:  Access level to Drush\Psysh\Shell::hasCommand() must be public (as in class Psy\Shell) in /app/vendor/drush/drush/src/Psysh/Shell.php on line 33

Workaround
Pin psy/psysh to 0.12.20.

System Configuration

Q A
Drush version? 12.x
Drupal version? 10.x
PHP version 8.x
OS? Linux

Additional information
Backport #6538 to 12.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions