HomePhabricator

Replace use of &$this

Authored by Anomie on Feb 1 2017, 3:54 AM.

Description

Replace use of &$this

Use of &$this doesn't work in PHP 7.1. For callbacks to methods like
array_map() it's completely unnecessary, while for hooks we still need
to pass a reference and so we need to copy $this into a local variable.

Bug: T153505
Change-Id: Ib31f3bbffdd6b25ad9a21498294644e4dde33bd1
(cherry picked from commit 1c3dd4fb0dc982de7c6cdbd56f24905c8fa82af5)

Details

Committed
LegoktmFeb 1 2017, 4:38 AM
Parents
rEMAT9b5eda37d1d4: Skip shell invocation on large input
Branches
Unknown
Tags
Unknown
References
REL1_28, refs/changes/00/335400/1
ChangeId
Ib31f3bbffdd6b25ad9a21498294644e4dde33bd1