I notice that this issue is ancient, however I've just had a similar issue.
I used
function mymodule_xautoload($adapter) {
$adapter->absolute()->composerDir('../vendor/composer');
}
and then I got an error when calling drush (for example drush cc)
PHP Fatal error: Cannot declare class OpenAI, because the name is already in use in /home/staging/deploy/vendor/openai-php/client/src/OpenAI.php on line 8
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot declare class OpenAI, because the name is already in use in
/home/staging/deploy/vendor/openai-php/client/src/OpenAI.php, line 8 [0.28 sec, 45.44 MB]
Changing all the requires to require_once in src/Discovery ComposerJson.php, ComposerDir.php and ComposerJsonTargetDir.php fixed this for me.
I have been using #34 with PHP 7, however it seems to fail with PHP 8.
Gerhard Killesreiter → created an issue.
PR has been created
https://git.drupalcode.org/project/lb_plus/-/merge_requests/45
Gerhard Killesreiter → made their first commit to this issue’s fork.
This is a duplicate of https://www.drupal.org/project/facets/issues/3283106 🐛 Hierarchy date - active item loses parent Active
This patch addresses the issue for me. it is unclear why it did work without it (according to the docs).
Updated patch
Gerhard Killesreiter → created an issue.
This is a version of the patch from the MR for the current stable version.
Updating status
See patch.
Gerhard Killesreiter → created an issue.
I've added you to the list of maintainers. Feel free to add additional maintainers (you should be able to).