HomePhabricator

Replace use of &$this

Authored by Anomie on Feb 1 2017, 3:51 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: I065808a2c4dc9bcb80861a79b46cf4b446b70d65
(cherry picked from commit 8bfc15c729c69bf0a23977e324677732ac20baa9)

Details