Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15910

Pass object arguments by reference implicitly

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.2.6-RC1
    • 4.0.0-a1, 3.2.4
    • Other
    • None

      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.

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

              Created:
              Updated:
              Resolved: