I faced the issue too.
It seems that it's caused by the difference between the version of the psr/log
package you have in your project and the one in the global vendor of your computer. I explain.
On Drupal 9.4, the dependency version for psr/log
is ~1.1.4
.
When you install Drush globally on your machine with Composer, it'll install psr/log
on version 3.0.0
.
And if you look at this MR (https://github.com/php-fig/log/pull/77) of psr/log
package, you'll see that the signature of the function changed on the last version so it throws the exception.
The solution is to use an alias for drush binary, waiting for Drupal 10 and its updated dependencies.
Hope it answers your issue !