Don't pass $this by reference
Bug: T153505 Change-Id: Ife076b323b1f4091fd851acb4b470000d2206cae
This commit is contained in:
parent
f81a1b80e9
commit
75765db66e
|
@ -316,7 +316,9 @@ class VectorTemplate extends BaseTemplate {
|
||||||
echo $this->makeListItem( $key, $val );
|
echo $this->makeListItem( $key, $val );
|
||||||
}
|
}
|
||||||
if ( $hook !== null ) {
|
if ( $hook !== null ) {
|
||||||
Hooks::run( $hook, [ &$this, true ] );
|
// Avoid PHP 7.1 warning
|
||||||
|
$skin = $this;
|
||||||
|
Hooks::run( $hook, [ &$skin, true ] );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue