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:
thiemowmde 2023-11-09 11:42:27 +01:00 committed by jenkins-bot
parent 4584c6d2b5
commit 67bbfe58ad

View file

@ -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 );
}