Skip to content

Commit a14e125

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Do not display the value of UNKNOWN constants in the manual (#9843)
2 parents 6be16f6 + 721e604 commit a14e125

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,10 @@ protected function addTypeToFieldSynopsis(DOMDocument $doc, DOMElement $fieldsyn
19111911
protected function getFieldSynopsisValueString(iterable $allConstInfos): ?string
19121912
{
19131913
$value = EvaluatedValue::createFromExpression($this->value, null, $this->cValue, $allConstInfos);
1914+
if ($value->isUnknownConstValue) {
1915+
return null;
1916+
}
1917+
19141918
if ($value->originatingConst) {
19151919
return $value->originatingConst->getFieldSynopsisValueString($allConstInfos);
19161920
}

0 commit comments

Comments
 (0)