Skip to content

phpdoc_to_comment trigger at phpdoc for hooks #9120

@carl-sauter

Description

@carl-sauter

Problem description

Rule phpdoc_to_comment converts valid phpdoc on hooks to comments.

Image

Minimal reproducer CLI command

php php-cs-fixer.phar fix /path/to/dir --rules=phpdoc_to_comment

Minimal reproducer code snippet

public array $konzessionen {
get => $this->konzessionen;

    /**
     * @param array<string> $value
     * @return void
     */
    set (array $value) {
        $this->konzessionen = is_array($value) ? $value : $value;
    }
}

Fixer version

3.88.2

PHP version

8.4.12

How do you run Fixer?

Composer package

Contribution Checks

  • I have verified if this problem was already reported
  • I am familiar with "Feature or bug?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions