Problem/Motivation

Using the latest 8.3.17 version. I'm trying to write a drush 11 command using PHP8 annotations, but PHPCS is telling me I'm missing the function doc comment, despite it being there. Here's the code:

<?php

/**
* Audit entities from an individual bundle.
*/
#[CLI\Command(name: 'ps_access:audit:bundle')]
#[CLI\Argument(name: 'entityType', description: 'The entity type (node or media)')]
#[CLI\Argument(name: 'bundle', description: 'The entity bundle (e.g. node type)')]
#[CLI\Usage(name: 'drush ps_access:audit:bundle media ps_private_document', description: 'Audit the Private Documents media bundle.')]
public function auditBundle(string $entityType, string $bundle): void {
...
}

Steps to reproduce

Add a function like described above.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

bkosborne created an issue. See original summary.

klausi’s picture

Status: Active » Closed (duplicate)

Sorry, overlooked this issue when creating #3345952: Wrong error on function doc comments when 2 attributes are used. Should be fixed in the dev version now, please test!