Conversation
a24cc02 to
66ae696
Compare
|
We should be able to do this without breaking BC. Because So my suggestion is:
Thank you! |
| ]; | ||
|
|
||
| yield [ | ||
| 'invalid without type and description', |
There was a problem hiding this comment.
I think the conclusion of #77 is that /** @param $foo */ shouldn't be a parse error either. The description can be an empty string, and if someone wants, they can have a rule to mark such tag as useless, but it would no longer be an objective bug to have such PHPDoc in the code...
So the grammar description + parser should be update to allow this tag.
1dcf081 to
d9b660c
Compare
|
Perfect, thank you! |
|
Thank you Ondřej and Richard! |
|
This one made our baseline files thinner by ~3k entries 🙈 I am not 100% convinced that this is good behaviour but I understand the reasoning behind it. Cheers! 🍻 |
|
Is it possible to revert the old behavior by configuration flag? |
|
Why? |
|
It was useful for us to detect this errors because they are usually show old code with bad type hinting (in our code base). We check and fix them step by step. So we need to stay at 1.7.11 version before will fix them all. |
|
@p-golovin As said earlier in this thread, you'll get the same errors on level 6 (missing parameter typehint). |
|
@ondrejmirtes Thank you. We'll try to raise level to 6 (now we make fixes on level 3). |
Really? We're on level 6 and upgrading caused many "ignored ... not found", so we had to regenerate baselines and maaaaaaany ignores were removed. 🤔 EDIT: remember, do not comment when too tired to understand 😉 |
|
see #77 (comment) |
Fixes #77