Is it possible to use Drush 8 with php8 ?? I have been looking on this forum, GitHub and the internet, but cannot find how to do this.
I have a fresh install of Ubuntu Server 22.04 which defaults to php8 and I have Drush 8.4.8 install on it.
In my site using drush --version and php7.4 I get this:
Drush proper version: 8.4.8 Backdrop Drush Extension version: 1.x-1.x
but with php8.1 I get this:
Undefined array key 2 command.inc:1014 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] Undefined array key "description" command.inc:1304 [warning] PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens: SELECT name FROM {system} WHERE type='module' AND status=1; Array ( [:type] => module [:status] => 1 ) in drush_db_select() (line 131 of phar:///usr/local/bin/drush/includes/dbtng.inc). Drush command terminated abnormally due to an unrecoverable error. [error] Error: Return type of DrushBatchContext::offsetSet($name, $value) should either be compatible with ArrayObject::offsetSet(mixed $key, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/local/bin/drush/includes/batch.inc, line 39
Is there some way to fix this?
I think that is correct. While Backdrop core has got this sorted, quite a few contrib modules could probably do with some help to get ready for 8.1.
It should also be considered that Drush 8 seems to be pegged to End of Life for D7, which at the moment is Nov 2023 but surely they will pull the plug on the life support at some time. Will Drush still be an option for Backdrop once Drush 8 is no longer supported?
There is brush and bee. Alan has said that they are no longer developing brush in favour of bee
bee is looking good, but could do with some help, particularly on the update function.