False positive "Missing class doc comment" in readonly classes

Created on 20 January 2023, over 1 year ago
Updated 3 February 2023, over 1 year ago

namespace Drupal\example;

/**
 * Some example.
 */
final readonly class Example {

}

The above code triggers the following violation.

------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
 8 | ERROR | [x] Missing class doc comment
   |       |     (Drupal.Commenting.ClassComment.Missing)
------------------------------------------------------------------------------------
πŸ› Bug report
Status

Fixed

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡·πŸ‡ΊRussia Chi

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024