mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Use the expression assignment operator to simplify code
Suggested by phan, available since php7.4 Change-Id: If31fdd7174cf71d346e4080a70fa302bb3378745
This commit is contained in:
parent
5c8927d62d
commit
2d6868cfe3
|
@ -187,7 +187,7 @@ class ReferenceStack {
|
|||
}
|
||||
}
|
||||
|
||||
$ref['number'] = $ref['number'] ?? ++$this->groupRefSequence[$group];
|
||||
$ref['number'] ??= ++$this->groupRefSequence[$group];
|
||||
|
||||
// Do not mess with a known parent a second time
|
||||
if ( $extends && !isset( $ref['extendsIndex'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue