Closed alex-jonas closed 1 week ago
This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself
If you are looking for an actively maintained package alternative, we recommend:
Bug Report
Summary
The
$message
params for the methods inLoggerInterface
have the wrong type annotation (Phpdoc). It's limited tostring
althoughLogger::log()
does also accept Stringables and Arrays as message.If you use the latter types, you must define exceptions in phpstan.
Current behavior
Wrong documentation on the
LoggerInterface
-methods for param$message
. E.g.How to reproduce
Log an Exception-Object as $message.
Expected behavior
Documentation reflects correctly which types are handled.