Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-615

False Positive ArgumentWithDefaultValueNotLast (S1788): variable number of arguments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: Rules
    • Labels:
      None

      Description

      function foo($p = 42, ... $rest) {  // false positive for $p
      }
      

        Attachments

          Activity

            People

            Assignee:
            elena.vilchik Elena Vilchik
            Reporter:
            elena.vilchik Elena Vilchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: