"Missing function doc comment" reported on a method with a doc bloc

Created on 16 May 2025, 3 days ago

Problem/Motivation

A "Missing function doc comment" error is reported on a method that has a function doc comment with an ignored error.

  /**
   * Gets a fallback id for a missing plugin.
   *
   *  -- trimmed --
   */
  // phpcs:ignore Drupal.Commenting.FunctionComment.InvalidNoReturn
  protected function getFallbackPluginId($plugin_id, array $configuration = []) {
    throw new \BadMethodCallException(static::class . '::getFallbackPluginId() not implemented.');
  }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

8.3

Component

Coder Sniffer

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024