language-server icon indicating copy to clipboard operation
language-server copied to clipboard

Add support for psr/log 2.0 and 3.0

Open Teddytrombone opened this issue 1 year ago • 0 comments

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.

Teddytrombone avatar Aug 29 '24 09:08 Teddytrombone