Specify allow round methods

This way, PHPStan can validate invalid input.
This commit is contained in:
Ruud Kamphuis
2024-11-02 14:05:46 +01:00
parent 679e41394a
commit fb43e7a854
+4 -4
View File
@@ -602,11 +602,11 @@ final class CoreExtension extends AbstractExtension
/**
* Rounds a number.
*
* @param int|float|string|null $value The value to round
* @param int|float $precision The rounding precision
* @param string $method The method to use for rounding
* @param int|float|string|null $value The value to round
* @param int|float $precision The rounding precision
* @param 'common'|'ceil'|'floor' $method The method to use for rounding
*
* @return int|float The rounded number
* @return float The rounded number
*
* @internal
*/