Use the expression assignment operator to simplify code

Suggested by phan, available since php7.4

Change-Id: If31fdd7174cf71d346e4080a70fa302bb3378745
This commit is contained in:
Umherirrender 2023-10-14 00:49:13 +02:00
parent 5c8927d62d
commit 2d6868cfe3

View file

@ -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'] ) ) {