Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14598

Phing Sniffer Testing Use Statements in DocBlocks

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.10-RC1
    • None
    • Test Suite
    • None

      Phing-sniff will consider a Use statement unused if it is only being used in a docblock, i.e.:

      use Foo\Bar\FooBar

      /* @var FooBar */

      It should be updated to recognize the statement is in fact used, to prevent test failures.

      Example failure: https://travis-ci.org/phpbb/phpbb/jobs/122583594#L940
      This is the usage: https://github.com/VSEphpbb/phpbb/blob/ticket/14569/phpBB/phpbb/console/command/user/reclean.php#L36

            nicofuma nicofuma
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: