Skip to content

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