Skip to content

Commit

Permalink
Constants desc default to '' (empty string)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkdotcom committed Aug 5, 2024
1 parent a1c7923 commit c22cde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Debug/Abstraction/Object/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private function getCaseRefInfo(ReflectionEnumUnitCase $refCase)
: array(),
'desc' => $this->phpDocCollect
? $this->helper->getPhpDocVar($refCase)['desc'] // actually the summary
: null,
: '',
'isFinal' => $refCase->isFinal(),
'value' => $refCase instanceof ReflectionEnumBackedCase
? $refCase->getBackingValue()
Expand Down Expand Up @@ -200,7 +200,7 @@ private function getConstantRefInfo(ReflectionClassConstant $refConstant)
: array(),
'desc' => $this->phpDocCollect
? $this->helper->getPhpDocVar($refConstant)['desc'] // actually the summary
: null,
: '',
'isFinal' => PHP_VERSION_ID >= 80100
? $refConstant->isFinal()
: false,
Expand Down

0 comments on commit c22cde5

Please sign in to comment.