Don't pass $this by reference

Bug: T153505
Change-Id: Ife076b323b1f4091fd851acb4b470000d2206cae
This commit is contained in:
Kunal Mehta 2017-08-31 21:09:15 -07:00 committed by Reedy
parent f81a1b80e9
commit 75765db66e
1 changed files with 3 additions and 1 deletions

View File

@ -316,7 +316,9 @@ class VectorTemplate extends BaseTemplate {
echo $this->makeListItem( $key, $val );
}
if ( $hook !== null ) {
Hooks::run( $hook, [ &$this, true ] );
// Avoid PHP 7.1 warning
$skin = $this;
Hooks::run( $hook, [ &$skin, true ] );
}
?>
</ul>