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 Fatal error: Declaration of Psr\Log\AbstractLogger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in /home/runner/actions-runner/_work/mail/mail/nextcloud/apps/mail/vendor/psr/log/Psr/Log/AbstractLogger.php on line 22
The package is bundled with nextcloud, and therefore it's actually wrong to have it here. We can utilize the composer replace function, but that's also tricky.
For example, we need stubs for the logger interfaces otherwise psalm is not happy. Installing the package temporary (like we do with nextcloud/ocp) does not work because of the replace definition.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Actual behavior
PHP Fatal error: Declaration of Psr\Log\AbstractLogger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in /home/runner/actions-runner/_work/mail/mail/nextcloud/apps/mail/vendor/psr/log/Psr/Log/AbstractLogger.php on line 22
Additional info
Solution 1: Update psr/log to 3.0.2
#10237
Good: Package matches the version in 3rdparty
Bad: The version in stable29 and stable30 is still psr/log 1.x.
Solution 2: Remove psr/log
#10235
The package is bundled with nextcloud, and therefore it's actually wrong to have it here. We can utilize the composer replace function, but that's also tricky.
For example, we need stubs for the logger interfaces otherwise psalm is not happy. Installing the package temporary (like we do with nextcloud/ocp) does not work because of the replace definition.
The text was updated successfully, but these errors were encountered: