Skip to content

Commit e1c9afd

Browse files
committed
Add more comment tags that can be onliners
@use for defining generic traits @phpstan-ignore-next-line
1 parent 5eccfe1 commit e1c9afd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Stefna/Sniffs/Commenting/DocCommentSniff.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66

77
class DocCommentSniff extends \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff
88
{
9-
private const ALLOWED_ONE_LINE_COMMENTS = ['@var', '@type', '@lang', '@noinspection'];
9+
private const ALLOWED_ONE_LINE_COMMENTS = [
10+
'@var',
11+
'@type',
12+
'@lang',
13+
'@noinspection',
14+
'@use',
15+
'@phpstan-ignore-next-line',
16+
];
1017

1118
/**
1219
* Processes this test, when one of its tokens is encountered.

0 commit comments

Comments
 (0)