mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Do not display the value of UNKNOWN constants in the manual (#9843)
This commit is contained in:
commit
a14e125baf
1 changed files with 4 additions and 0 deletions
|
@ -1911,6 +1911,10 @@ class ConstInfo extends VariableLike
|
|||
protected function getFieldSynopsisValueString(iterable $allConstInfos): ?string
|
||||
{
|
||||
$value = EvaluatedValue::createFromExpression($this->value, null, $this->cValue, $allConstInfos);
|
||||
if ($value->isUnknownConstValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($value->originatingConst) {
|
||||
return $value->originatingConst->getFieldSynopsisValueString($allConstInfos);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue