Skip to content

Commit

Permalink
Update Psalm to 5.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Nov 26, 2023
1 parent 70843ed commit d374c89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"require-dev": {
"phpunit/phpunit": "^10.1",
"php-coveralls/php-coveralls": "^2.2",
"vimeo/psalm": "5.15.0"
"vimeo/psalm": "5.16.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions src/BigDecimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ public function remainder(BigNumber|int|float|string $that) : BigDecimal
*
* @return BigDecimal[] An array containing the quotient and the remainder.
*
* @psalm-return array{BigDecimal, BigDecimal}
*
* @throws MathException If the divisor is not a valid decimal number, or is zero.
*/
public function quotientAndRemainder(BigNumber|int|float|string $that) : array
Expand Down
2 changes: 2 additions & 0 deletions src/BigInteger.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ public function remainder(BigNumber|int|float|string $that) : BigInteger
*
* @return BigInteger[] An array containing the quotient and the remainder.
*
* @psalm-return array{BigInteger, BigInteger}
*
* @throws DivisionByZeroException If the divisor is zero.
*/
public function quotientAndRemainder(BigNumber|int|float|string $that) : array
Expand Down
2 changes: 2 additions & 0 deletions src/BigRational.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ public function remainder() : BigInteger
* Returns the quotient and remainder of the division of the numerator by the denominator.
*
* @return BigInteger[]
*
* @psalm-return array{BigInteger, BigInteger}
*/
public function quotientAndRemainder() : array
{
Expand Down

0 comments on commit d374c89

Please sign in to comment.