mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Drop obsolete PHP 7.2 "arrayToObject" workaround
According to T228346 and T254519 this is a workaround for a PHP 7.2 bug. We require PHP 7.4 by now. Not used anywhere outside of this codebase: https://codesearch.wmcloud.org/search/?q=PHPU%5Cw*%3A%3AarrayToObject&files=%5C.php%24 Bug: T254519 Change-Id: I4150900e59c5bd865ce102417ac354a54552e623
This commit is contained in:
parent
4584c6d2b5
commit
67bbfe58ad
|
@ -545,7 +545,7 @@ class References extends ExtensionTagHandler {
|
|||
} elseif ( count( $nestedRefsHTML ) > 0 ) {
|
||||
$dataMw->body = (object)[ 'html' => "\n" . implode( $nestedRefsHTML ) ];
|
||||
} elseif ( empty( $dp->selfClose ) ) {
|
||||
$dataMw->body = PHPUtils::arrayToObject( [ 'html' => '' ] );
|
||||
$dataMw->body = (object)[ 'html' => '' ];
|
||||
} else {
|
||||
unset( $dataMw->body );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue