php_unit_test_annotation set to prefix erroneously adds 'test' to single line doc blocks with the @depends tag #6457
Labels
status/input required
For the issue to be confirmed or the PR to be process; additional input of the author is required
Versions used
What did I do
Executed
vendor/bin/php-cs-fixer fix -v --allow-risky=yes tests/Unit/ItemTest.php
.What happened
The string
test
was appended to single-line-docblocks with the@depends
tag.What I expected to happen
Nothing. Considering that the rule
php_unit_test_annotation
is imported from@PhpCsFixer:risky
and wasn't changed (so it's still on the defaultprefix
), it shouldn't act here at all.Notes
The following PhpDoc blocks were not affected by the rule. Not sure if there are other single-line comments this would affect, as I only tested
@covers
Probably not an urgent issue, since the workaround is to simply expand the PhpDoc block
Used Ruleset
The text was updated successfully, but these errors were encountered: