-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add phpdoc for LogInterface::log() $message argument #1445
Conversation
PHPStan complains that it is not specified. Looking at the method signature of Psr\Log\LoggerTrait, it appears that $level uses a phpdoc, and both $message and $context use native type declarations, so the corresponding phpdoc was removed in 3.0.1
Maybe the doc blocks shouldn't have been removed in the first place. 🤔 cc @lyrixx |
Maybe, but now that this ship has sailed, I wouldn't revert it I think. |
Shouldn't require 3.0.1 as minimum version fix the issue? |
I don't think it would, because the issue appears with 3.0.1 IMO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{@inheritDoc}
should actually do the trick for phpstan. I don't know why the phpdocs need to be added to make it work. 🤔
@SenseException since 3.0.1, there is nothing to inherit, the phpdoc was dropped in the PR I linked in my original message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 It's better now
PHPStan complains that it is not specified. Looking at the method signature of Psr\Log\LoggerTrait, it appears that $level uses a phpdoc, and both $message and $context use native type declarations, so the corresponding phpdoc was removed in 3.0.1