Declaration of Psr\Log\AbstractLogger::emergency event log error

Hi All,

I tried a search in talk but it didn’t show any specific results, I don’t think it’s only happening to me though.

I feel this is something to do with my install of OctoberCMS and package versions, I am always getting this error in the event log when it is unable to show the actual error:

Declaration of Psr\Log\AbstractLogger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void {"exception":[]}

From what I can see, it’s to do with a mismatch between type declarations or lack thereof.

Of course, I am able to look at my Apache and PHP logs to see the actual issue. I feel that the event log is useful enough and that this is something to do with incompatible package versions.

I am on build 4.1.17, PHP 8.4 and composer 2.9.5

Appreciate any pointers.