I've got the following code:

<?php
/**
 * @file
 */
function foo_bar($foo) {
  return NULL;
}

Testing command: phpcbf --standard=Drupal foo.inc

It generates too many passes, however it works when removing @file.

Comments

kenorb created an issue. See original summary.

  • klausi committed 272aa5d on 8.x-2.x
    Issue #2669096: Fixed phpcbf problem with empty @file comments
    
klausi’s picture

Status: Active » Fixed

Committed a fix, thanks for reporting!

  • klausi committed 0913b5f on 8.x-2.x
    Isssue #2669096: Added tests to make sure file and class comment fixers...

Status: Fixed » Closed (fixed)

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