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

Pass object arguments by reference implicitly

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-a1, 3.2.4
    • Fix Version/s: 3.2.6-RC1
    • Component/s: Other
    • Labels:
      None

      Description

      Since PHP 5, object arguments don't need to be passed by reference explicitly anymore. The only exception to this is when the object the argument points to is re-assigned in the function body.

      All the unneeded & in function arguments where objects are passed should be removed.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: