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

False Positive FormattingStandard (S1808): multi-line 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

      This code should be valid (see http://www.php-fig.org/psr/psr-2/meta/#3-1-multi-line-arguments-09-08-2013)

      <?php
      somefunction($foo, $bar, [
        // ...
      ], $baz);
      
      $app->get('/hello/{name}', function ($name) use ($app) { 
          return 'Hello '.$app->escape($name); 
      });
      

        Attachments

          Issue Links

            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: