- π¦πΉAustria klausi π¦πΉ Vienna
Thanks for reporting!
I started a fix at https://github.com/pfrenssen/coder/pull/179 , but the fixer does not work correctly yet.
-
klausi β
authored 1c466233 on 8.3.x
fix(ClassComment): Support PHP 8 class attributes (#3322615)
-
klausi β
authored 1c466233 on 8.3.x
- Status changed to Fixed
over 1 year ago 9:05pm 19 February 2023 - Status changed to Needs work
over 1 year ago 4:19pm 28 February 2023 - π·π΄Romania claudiu.cristea Arad π·π΄
This is only fixing the case when there's one attribute. But a method might expose multiple attributes. The following will fail with: Missing class doc comment (Drupal.Commenting.ClassComment.Missing)
/** * Method docblock. */ #[Some\Attribute(foo: 'bar')] #[Other\Attribute(baz: 'qux')] public function method() { }
- π¦πΉAustria klausi π¦πΉ Vienna
Thanks for reporting, I'll put that in as test case and will check.
-
klausi β
committed 1609318d on 8.3.x
test(ClassComment): Add test case for double attribute lines on classes...
-
klausi β
committed 1609318d on 8.3.x
- Status changed to Fixed
over 1 year ago 12:00pm 4 March 2023 - π¦πΉAustria klausi π¦πΉ Vienna
Added a test case for class comments, there it works as expected.
It looks like you are talking about method attributes, which are not checked in the class comment sniff. Will open a new issue to check for that.
- π¦πΉAustria klausi π¦πΉ Vienna
Created π Wrong error on function doc comments when 2 attributes are used Fixed .
Automatically closed - issue fixed for 2 weeks with no activity.