Closed bretthaddoak closed 1 year ago
Hi @bretthaddoak. This looks very similar to a issue raised here: https://github.com/bugsnag/bugsnag-psr-logger/issues/54 with the likely root cause being identified as https://github.com/bugsnag/bugsnag-psr-logger/issues/54#issuecomment-1151297410 Can you confirm if you are using a similar package or have any dependencies that could be using PSR log v1?
https://github.com/bugsnag/bugsnag-psr-logger/issues/54#issuecomment-1146864083 has also been suggested as a workaround.
Sorry I didn't catch that, got to be one of the dumbest production issues I've encountered recently. It was the php8.1-psr package being installed that was the culprit. Removing it solved the problem. Thanks @johnkiely1
Describe the bug
Declaration of Bugsnag\PsrLogger\BugsnagLogger::log(mixed $level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])
Steps to reproduce
Environment
Example Repo
Error messages:
Declaration of Bugsnag\PsrLogger\BugsnagLogger::log(mixed $level, Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::log($level, $message, array $context = [])