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.
This docblock which has multiple @throws tags generates false positives and notices during code sniffing:
/**
* Verifies that the given field is of the given type.
*
* @param string $field
* Field ID, name or label.
* @param string $type
* The expected field type.
*
* @throws \Behat\Mink\Exception\ElementNotFoundException
* Thrown when the field is not found on the page.
* @throws \Exception
* Thrown when the field is not of the expected type.
*
* @Then (I should see )(that )the :field field is a :type( field)
*/
Notice: Undefined index: comment_closer in vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php on line 310
FILE: features/bootstrap/FeatureContext.php ---------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------- 18 | ERROR | Comment missing or not on the next line for @throws tag | | in function comment ----------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#4 | 2461909-4.patch | 3.49 KB | pfrenssen |
Comments
Comment #1
pfrenssenComment #2
pfrenssenComment #3
klausiPatch does not apply, please reroll against 8.x-2.x HEAD.
Comment #4
pfrenssenRerolled.
Comment #5
klausiRerolled one more time and committed that, thanks!