Skip to content

Commit

Permalink
Specify allow round methods
Browse files Browse the repository at this point in the history
This way, PHPStan can validate invalid input.
  • Loading branch information
ruudk authored Nov 2, 2024
1 parent 7575125 commit c99af45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ public static function replace($str, $from): string
/**
* 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
*
Expand Down

0 comments on commit c99af45

Please sign in to comment.