X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fchanges%2FRecentChange.php;h=772500fe7484205e81627b7d6bcfc93b0dd598f7;hb=fb3ae6fbe31738a0c886dcbeab90ca39bff9c167;hp=13a5fc7b80b3faa3cfc4180c55958277901113fc;hpb=39cd742864b4cf225a0337843200c1b3558420a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/RecentChange.php b/includes/changes/RecentChange.php index 13a5fc7b80..772500fe74 100644 --- a/includes/changes/RecentChange.php +++ b/includes/changes/RecentChange.php @@ -329,7 +329,9 @@ class RecentChange { $this->mAttribs['rc_id'] = $dbw->insertId(); # Notify extensions - Hooks::run( 'RecentChange_save', [ &$this ] ); + // Avoid PHP 7.1 warning from passing $this by reference + $rc = $this; + Hooks::run( 'RecentChange_save', [ &$rc ] ); if ( count( $this->tags ) ) { ChangeTags::addTags( $this->tags, $this->mAttribs['rc_id'],