Fix docblock tag descriptions

Newlines and whitespaces were not handled as before. This caused
issues for some users because our indent-recuction was broken.
The cause seems to be an upstream issue in phpstan parser which
is not resolved yet. But this work around post processing the tokens
helps us to make it work as before.
This commit is contained in:
Jaapio
2024-05-21 07:50:53 +02:00
parent 88a07d2628
commit 8c422ab43b
4 changed files with 127 additions and 6 deletions
+6
View File
@@ -48,6 +48,12 @@
</errorLevel>
</NoInterfaceProperties>
<TooManyArguments>
<errorLevel type="info">
<file name="src/DocBlock/Tags/Factory/AbstractPHPStanFactory.php"/>
</errorLevel>
</TooManyArguments>
<RedundantConditionGivenDocblockType>
<errorLevel type="info">
<!-- Psalm manage to infer a more precise type than PHPStan. notNull assert is needed for PHPStan but