Commit 0d39a714 authored by Klaus Purer's avatar Klaus Purer
Browse files

fix(DocCommentLongArraySyntax): Imrove sniff error message (#2857906)

parent 97e91f19
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ class DocCommentLongArraySyntaxSniff implements Sniff
                    // Check for long array syntax use inside this @code annotation.
                    for ($i = ($codeStart + 1); $i < $codeEnd; $i++) {
                        if (preg_match('/\barray\s*\(/', $tokens[$i]['content']) === 1) {
                            $error = 'Long array syntax used in doc comment code annotation';
                            $error = 'Long array syntax must not be used in doc comment code annotations';
                            $phpcsFile->addError($error, $i, 'DocLongArray');
                        }
                    }