You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
The $message params for the methods in LoggerInterface have the wrong type annotation (Phpdoc). It's limited to string although Logger::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.
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.
The text was updated successfully, but these errors were encountered: