Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16671

Fix the code sniffer's unused use statement rules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-a1, 3.3.3
    • Fix Version/s: None
    • Component/s: Test Suite
    • Labels:
      None

      Description

      The code sniffer's unused use statement extension behaves incorrectly in the following scenarios:

      1. Cannot handle use statements for functions.
      2. Prohibits adding classes in the global namespace to use statements.
      3. The checks for prohibiting using the full name of a class is fooled by leading backslashes.

        Attachments

          Activity

            People

            Assignee:
            CHItA CHItA
            Reporter:
            CHItA CHItA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: