Closed ll-ld closed 3 years ago
Thanks for posting this error message. This is a known issue, see here:
It appears to be a bug in the DocBlocks of Monolog. See here:
The DocBlock does not match with the actual constructor parameters.
When I fix the DocBlock in RotatingFileHandler and StreamHandler manually, the phpstan errors are gone.
The best way to fix this would be to create a PR in the monolog repository.
Edit: I created an PR to fix this issue in Monolog.
As a quick fix you could add /** @phpstan-ignore-next-line */
to ignore this phpstan error.
See here: https://github.com/odan/slim4-skeleton/commit/cfce80023b2c9805e8c5bf2bc5bf2b39cbb9a9c1
Hello, I get this error after a fresh installation/repo creation of slim4-skeleton and cant find any help how to solve this. pls help me out with some advice, thank you in advance.