Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Exceptions

      Anonymous functions containing a single statement are ignored.

      $max_comparator = function ($v) { return $v > 2; };           // Compliant
      $max_comparator = function ($v) { echo $v; return $v > 2; };  // Noncompliant
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ann.campbell.2 Ann Campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: