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

Pass object arguments by reference implicitly

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 4.0.0-a1, 3.2.4
    • 3.2.6-RC1
    • Other
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: