-
Notifications
You must be signed in to change notification settings - Fork 11.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.x] Fix 'pushProcessor method not found on LoggerInterface' error #52117
[11.x] Fix 'pushProcessor method not found on LoggerInterface' error #52117
Conversation
Thanks for submitting a PR! Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface. Pull requests that are abandoned in draft may be closed due to inactivity. |
Logger@pushProcessor()
8da09a9
to
d94d533
Compare
d94d533
to
51c0903
Compare
Can this be formatted differently? I can't really tell what is going on. |
51c0903
to
aa274e8
Compare
@taylorotwell hopefully this is easier to read. I find use of For clarity, the goal is to only call As I was modifying this, another thought would be to allow The failing tests look like they're related to sqlite changes from earlier today. |
51bcd55
to
9f11814
Compare
Thanks! |
I came across this trying to unit test a package I'm working on where I want to use a logger spy. Though the only requirement stated is that the logger must be of Psr\Log\LoggerInterface, in practice, the log channel cannot be built.
Due to the change when adding the Context functionality, there's an implicit dependency that the LoggerInterface used by Logger must have a
pushProcessor()
method (provider by Monolog's ProcessableHandlerInterface).The alternative approach is to add a method for
Logger@pushProcessor()
.todo: