Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 637 Bytes

SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.md

File metadata and controls

16 lines (9 loc) · 637 Bytes

Pattern: Malformed inline doc comment declaration

Issue: -

Description

Reports invalid inline phpDocs with @var.

Rule provides the following settings:

  • allowDocCommentAboveReturn: Allows documentation comments without variable name above return statement.
  • allowAboveNonAssignment: Allows documentation comments above non-assignment if the line contains the right variable name.

Further Reading