Skip to content

Commit 4354a32

Browse files
committed
Remove PHP 8 compatible code
1 parent 02da8a9 commit 4354a32

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/gen_stub.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2551,9 +2551,9 @@ function replaceClassSynopses(string $targetDirectory, array $classMap): array
25512551
return $classSynopses;
25522552
}
25532553

2554-
function getReplacedClassSynopsisXml(string $xml): string|array|null
2554+
function getReplacedClassSynopsisXml(string $xml): string
25552555
{
2556-
$replacedXml = preg_replace(
2556+
return preg_replace(
25572557
[
25582558
"/&([A-Za-z0-9._{}%-]+?;)/",
25592559
"/<(\/)*xi:([A-Za-z]+?)/"
@@ -2564,7 +2564,6 @@ function getReplacedClassSynopsisXml(string $xml): string|array|null
25642564
],
25652565
$xml
25662566
);
2567-
return $replacedXml;
25682567
}
25692568

25702569
/**

0 commit comments

Comments
 (0)