laminas / laminas-log

Robust, composite logger with filtering, formatting, and PSR-3 support
https://docs.laminas.dev/laminas-log/
BSD 3-Clause "New" or "Revised" License
26 stars 30 forks source link

Invalid PHPDoc-Block "@param string $message" in \Laminas\Log\Logger #18

Closed check24-axel-nitzsche closed 3 years ago

check24-axel-nitzsche commented 3 years ago

Bug Report

Summary

The log-level specific methods like \Laminas\Log\Logger::alert are declared with a @param string $message PHPDoc-Block, which is wrong, as the \Laminas\Log\Logger::log method is declared with @param mixed $message.

Current behavior

Static code analysis tools like phpstan/phpstan report a error, if you call any of these methods with anything else than a string.

Expected behavior

All of the log-level specific methods are declared with a @param mixed $message PHPDoc-Block, like \Laminas\Log\Logger::log is.

laminas-bot commented 3 years 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: