Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule multiline_comment_opening_closingΒΆ

DocBlocks must start with two asterisks, multiline comments must start with a single asterisk, after the opening slash. Both must end with a single asterisk before the closing slash.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php

-/******
+/*
  * Multiline comment with arbitrary asterisks count
- ******/
+ */

-/**\
+/*\
  * Multiline comment that seems a DocBlock
  */

 /**
  * DocBlock with arbitrary asterisk count at the end
- **/
+ */

Rule setsΒΆ

The rule is part of the following rule set:

Source classΒΆ

PhpCsFixer\Fixer\Comment\MultilineCommentOpeningClosingFixer