mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-06 23:48:50 +00:00
Specify allow round methods
This way, PHPStan can validate invalid input.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user