dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MCR] Fix RevisionInsertComplete Revision pass by reference
[lhc/web/wiklou.git]
/
includes
/
Revision.php
diff --git
a/includes/Revision.php
b/includes/Revision.php
index
ea73a61
..
c7c708e
100644
(file)
--- a/
includes/Revision.php
+++ b/
includes/Revision.php
@@
-979,8
+979,10
@@
class Revision implements IDBAccessObject {
$this->mRecord = $rec;
$this->mRecord = $rec;
+ // Avoid PHP 7.1 warning of passing $this by reference
+ $revision = $this;
// TODO: hard-deprecate in 1.32 (or even 1.31?)
// TODO: hard-deprecate in 1.32 (or even 1.31?)
- Hooks::run( 'RevisionInsertComplete', [
$this
, null, null ] );
+ Hooks::run( 'RevisionInsertComplete', [
&$revision
, null, null ] );
return $rec->getId();
}
return $rec->getId();
}