I installed acorn 4.x that is using Monolog ver 3.8.x that supports psr\log 2.0 and 3.0 but not 1.0.
I am using the cloudflare plugin that uses psr\log 1.0 that then conflicts with the monolog psr that cannot be downgraded to 1.0.
I just jumped down the rabbit hole of trying to fix this, but even with the pull request it didn’t work for Acorn 5 when running wp acorn optimize. Instead of starting my own thread, I figured I’d post it here instead because this is where you end up if you search for the issue on Google.
Here’s what you need to do if you want to fix it.
Option 1 - Do it yourself
Download the stuff from the PR, one way or another.
Open cloudflare/src/Integration/DefaultLogger.php
Add a \ in front of the two Stringable functions like this: public function log($level, \Stringable|string $message, array $context = []): void public function debug(\Stringable|string $message, array $context = []): void