π¬ | 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 = [])
πΊπΈUnited States swatchion
Ubuntu 22 with php8.2 here, confirmed that after removing php-psr extension, this error is fixed.
If you disable php-psr by removing 15-psr.ini file, the error is still there, this extension has to be removed.
πΊπΈUnited States swatchion
For anyone has this problem with version 8.x-1.2 after you use composer add package "phpmailer/phpmailer", just add a "\" before namespace "Drupal\smtp\Form\SMTPConfigForm" line 5 of file "smtp.info.yml", the problem is caused by the missing of root namespace.