Skip to content

aliases.drushrc.php.stub is not PHP 8 compatible #19

@Leksat

Description

@Leksat

Describe the bug

There is a comparison happening here: https://github.com/uselagoon/lagoon/blob/9f9c6cbf6fcd66819829074ade5b404cd5a0050f/services/drush-alias/web/aliases.drushrc.php.stub#L41

In PHP 8 it works in a different way: https://3v4l.org/PMomq (because of this change in PHP 8)

Screen Shot 2022-02-24 at 13 05 21

To Reproduce

Steps to reproduce the behavior:

  1. Get a project using the stub file (https://github.com/amazeeio/drupal-setting-files/blob/master/Drupal8/drush/aliases.drushrc.php)
  2. Upgrade the project to PHP 8

Drush aliases do not work.

Expected behavior

Drush aliases work.

Additional context

The stub file is not needed on projects using https://github.com/amazeeio/drupal-integrations, but will provide a PR anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions