🐛 | Drupal core | Transaction autocommit during shutdown relies on unreliable object destruction order
🇨🇭Switzerland olegiv
I have temporarily disabled xdebug for CLI mode – it fixed the issue in my case.
It looks like the issue started after the recent xdebug update on 2023-11-30.
💬 | Drupal core | PHP message: PHP Fatal error: Declaration of Drupal\Core\Logger\LoggerChannel::log($level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerTrait::log($level, $message, array $context = [])
🇨🇭Switzerland olegiv
I also had the "PHP Fatal error: Declaration of Drupal\Core\Logger\LoggerChannel..." issue while composer installing Drupal 10.0.9 and Drupal 10.1.0 under Debian 11.7 & PHP 8.1.
The solution was to disable php-psr extension which had been active in my case.
Hope it helps!