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

Add support for psr/log 2.0 and 3.0 #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Teddytrombone
Copy link

@Teddytrombone Teddytrombone commented Aug 29, 2024

Fixes #60
There are some caveats:

  • as Psr\Log\Test\TestLogger was removed with psr/log:3.0 we need an alternative TestLogger for unit testing. colinodell/psr-testlogger provides this, which works for all psr/log versions.
  • we need to ignore phpstan errors in bin/serve.php as the inline class inheriting AbstractLogger needs more type hints depending on the psr/log version

Apart from that everything should work. phpunit and phpstan ran without errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support more psr/log versions
1 participant