Skip to content

Commit 4b4b1dc

Browse files
committed
fix : clarify RoundingMode fallback
1 parent c83de21 commit 4b4b1dc

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
@@ -122,8 +122,10 @@ public function getTypeFromFunctionCall(FunctionReflection $functionReflection,
122122

123123
/**
124124
* @return 1|2|3|4|null
125-
* // Fall back to the default return type for RoundingMode cases
126-
* // without a corresponding PHP_ROUND_HALF_* constant.
125+
*
126+
* Returns null for RoundingMode cases without a corresponding
127+
* PHP_ROUND_HALF_* constant, so constant evaluation falls back
128+
* to the existing return-type logic.
127129
*/
128130
private function resolveRoundMode(Type $modeType): ?int
129131
{

0 commit comments

Comments
 (0)