Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
According to Drupal's documentation standards https://www.drupal.org/node/1354#throws , the comment for a throws directive is optional and only should be added if adds clarity to the use of an exception. Currently Drupal.Commenting.FunctionComment.EmptyThrows highlights the missing comment line as an error. This issue is to correct the false sniff for this condition.
This sniff condition was discovered while performing a code review for #2624640: Fixes to docs and code style for migrate/src/*.php files.
Comments
Comment #2
Lars Toomre CreditAttribution: Lars Toomre as a volunteer commentedWhoops... wrong status.
Comment #3
klausifixed link
Comment #5
klausiCommitted a fix, thanks for reporting!