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() {
  }

}

Comments

klausi created an issue. See original summary.

  • klausi authored ce8194d9 on 8.3.x
    fix(FunctionComment): Fix handling of multiple attribute lines (#3345952...
klausi’s picture

Status: Active » Fixed

Copied the code of the upstream PEAR/Squiz class and added a test case.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.