You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#58098 [HttpKernel] Fix method naming collision of dummy logger implementations (derrabus)
This PR was merged into the 7.2 branch.
Discussion
----------
[HttpKernel] Fix method naming collision of dummy logger implementations
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
In HttpKernel's test suite, we use a dummy logger implementation which exposes a `getLogs()` method. Our own `DebugLoggerInterface` also defines a `getLogs()` method with a different signature and different semantics. Then there's also a `TestLogger` class which extends our dummy logger _and_ implements that interface which leads to a weird naming collision.
In this PR, I'm renaming the dummy's `getLogs()` method to `getLogsForLevel()` to resolve this situation. While I'm at it, I'm also simplifying the implementation by leveraging the `AbstractLogger` class from the psr/log contracts.
Since I'm only changing test classes, I believe that the method signature changes should not cause any trouble.
Commits
-------
ec9f13e [HttpKernel] Fix method naming collision
0 commit comments