You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Parse error: syntax error, unexpected '[' in phar:///tmp/drush.phar/includes/startup.inc on line 63
PHP Stack trace:
PHP 1. {main}() /tmp/drush.phar:0
PHP 2. require() /tmp/drush.phar:10
.....
[UnexpectedValueException]
Could not parse version constraint stable: Invalid version string "stable"
Tell us generally about your bug
I think this relates to the short array syntax introduced in PHP 5.4 and the version of "backdrush" on my site. I tried the "dev" version of "backdrush" but still got the same error.
Maybe have a "backdrush:none" option if Backdrop's version of Drush is finnicky...or turn it off by default.
The "UnexpectedValueException" seems like this could be entirely a backdrush thing as I had a different string than "stable" and still get that error without the "backdrush" key in my .lando.yml file.
The text was updated successfully, but these errors were encountered:
Thanks @alexfinnarn
yeah; Backdrop Drush requires Drush proper 8.x and that requires PHP 5.4+.
The idea of backdropdrush: 'none'; is valid, but we wouldn't know that the user would be overriding to php: '5.3' ahead of time so they would still have to know to use the none option in there .lando.yml file.
I can look into a none option and maybe update the docs with the gotchya.
Bug Report
Tell us about your setup
Tell us about your
.lando.yml
Tell us about the command you were running
Tell us about the error you got
Tell us generally about your bug
I think this relates to the short array syntax introduced in PHP 5.4 and the version of "backdrush" on my site. I tried the "dev" version of "backdrush" but still got the same error.
Maybe have a "backdrush:none" option if Backdrop's version of Drush is finnicky...or turn it off by default.
The "UnexpectedValueException" seems like this could be entirely a backdrush thing as I had a different string than "stable" and still get that error without the "backdrush" key in my .lando.yml file.
The text was updated successfully, but these errors were encountered: