Wrong error on function doc comments when 2 attributes are used

Created on 4 March 2023, over 1 year ago

Problem/Motivation

Coder reports an error when 2 attributes are used on a method that the fucntion doc comments are missing, even if it is there

Steps to reproduce

/**
 * Test PHP attributes.
 */
class TestPhpAttributes {

  /**
   * Method docblock.
   */
  #[Some\Attribute(foo: 'bar')]
  #[Other\Attribute(baz: 'qux')]
  public function method() {
  }

}
πŸ› Bug report
Status

Fixed

Version

8.3

Component

Coder Sniffer

Created by

πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

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

Comments & Activities

Production build 0.69.0 2024