[PHPBB3-14598] Phing Sniffer Testing Use Statements in DocBlocks Created: 12/Apr/16  Updated: 13/Apr/16  Resolved: 13/Apr/16

Status: Unverified Fix
Project: phpBB3
Component/s: Test Suite
Affects Version/s: None
Fix Version/s: 3.1.10-RC1

Type: Task Priority: Minor
Reporter: Matt Friedman Assignee: nicofuma
Resolution: Fixed Votes: 0
Labels: 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

Generated at Sat Feb 16 07:21:34 UTC 2019 using Jira 7.12.3#712004-sha1:5ef91d760d7124da5ebec5c16a948a4a807698df.