Skip to content
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

Support newer versions of psr/log #154

Merged
merged 2 commits into from
Sep 7, 2022

Conversation

edsrzf
Copy link
Contributor

@edsrzf edsrzf commented Sep 3, 2022

psr/log 2.0 removes the TestLogger class, so I've replaced its usage with PHPUnit mocks.

psr/log 2.0 removes the TestLogger class, so I've added a dev dependency
on colinodell/psr-testlogger, which exposes a compatible class.
@robbieaverill
Copy link
Contributor

Hi @edsrzf, thanks for the pull request. I think it would be better to replace the TestLogger implementation with PHPUnit mocks of the LoggerInterface class. Since PSR seem not to want that class any longer, replacing it with a polyfill seems like a band-aid solution. Would you be interested in making those updates?

@edsrzf
Copy link
Contributor Author

edsrzf commented Sep 7, 2022

@robbieaverill done. Let me know what you think.

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@robbieaverill robbieaverill merged commit a479ce6 into MindscapeHQ:master Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants