Skip to content

Commit 57d9187

Browse files
ShioPy0101ondrejmirtes
authored andcommitted
fix : clarify RoundingMode fallback
1 parent dac9763 commit 57d9187

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/Type/Php/RoundFunctionReturnTypeExtension.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
116116

117117
/**
118118
* @return 1|2|3|4|null
119-
* // Fall back to the default return type for RoundingMode cases
120-
* // without a corresponding PHP_ROUND_HALF_* constant.
119+
*
120+
* Returns null for RoundingMode cases without a corresponding
121+
* PHP_ROUND_HALF_* constant, so constant evaluation falls back
122+
* to the existing return-type logic.
121123
*/
122124
private function resolveRoundMode(Type $modeType): ?int
123125
{

0 commit comments

Comments
 (0)