Skip to content

Commit ac80c54

Browse files
committed
Harmonize docs
1 parent b456eeb commit ac80c54

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

src/BigInteger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ public function quotientAndRemainder(BigNumber|int|string $that): array
671671
* - `7` mod `3` returns `1`
672672
* - `-7` mod `3` returns `2`
673673
*
674-
* @param BigNumber|int|string $modulus The modulus, strictly positive. Must be convertible to a BigInteger.
674+
* @param BigNumber|int|string $modulus The modulus. Must be convertible to a BigInteger.
675675
*
676676
* @throws MathException If the modulus is not valid, or is not convertible to a BigInteger.
677677
* @throws InvalidArgumentException If the modulus is negative.

src/BigNumber.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,13 @@ final public static function ofNullable(BigNumber|int|string|null $value): ?stat
123123
* If several values are equal and minimal, the first one is returned.
124124
* This can affect the concrete return type when calling this method on BigNumber.
125125
*
126-
* @param BigNumber|int|string $a The first number.
127-
* @param BigNumber|int|string ...$n The subsequent numbers. All the numbers must be convertible to an* instance of the class this method is called on.
126+
* @param BigNumber|int|string $a The first number. Must be convertible to an instance of the class this method
127+
* is called on.
128+
* @param BigNumber|int|string ...$n The additional numbers. Each number must be convertible to an instance of the
129+
* class this method is called on.
128130
*
129-
* @throws MathException If a number is not valid, or is not convertible to an instance of the class
130-
* this method is called on.
131+
* @throws MathException If a number is not valid, or is not convertible to an instance of the class this method is
132+
* called on.
131133
*
132134
* @pure
133135
*/
@@ -152,11 +154,13 @@ final public static function min(BigNumber|int|string $a, BigNumber|int|string .
152154
* If several values are equal and maximal, the first one is returned.
153155
* This can affect the concrete return type when calling this method on BigNumber.
154156
*
155-
* @param BigNumber|int|string $a The first number.
156-
* @param BigNumber|int|string ...$n The subsequent numbers. All the numbers must be convertible to an* instance of the class this method is called on.
157+
* @param BigNumber|int|string $a The first number. Must be convertible to an instance of the class this method
158+
* is called on.
159+
* @param BigNumber|int|string ...$n The additional numbers. Each number must be convertible to an instance of the
160+
* class this method is called on.
157161
*
158-
* @throws MathException If a number is not valid, or is not convertible to an instance of the class
159-
* this method is called on.
162+
* @throws MathException If a number is not valid, or is not convertible to an instance of the class this method is
163+
* called on.
160164
*
161165
* @pure
162166
*/
@@ -184,12 +188,13 @@ final public static function max(BigNumber|int|string $a, BigNumber|int|string .
184188
* When called on BigInteger, BigDecimal, or BigRational, sum() requires that all values can be converted to that
185189
* specific subclass, and returns a result of the same type.
186190
*
187-
* @param BigNumber|int|string $a The first number.
188-
* @param BigNumber|int|string ...$n The additional numbers. All the numbers must be convertible to an
189-
* instance of the class this method is called on.
191+
* @param BigNumber|int|string $a The first number. Must be convertible to an instance of the class this method
192+
* is called on.
193+
* @param BigNumber|int|string ...$n The additional numbers. Each number must be convertible to an instance of the
194+
* class this method is called on.
190195
*
191-
* @throws MathException If a number is not valid, or is not convertible to an instance of the class
192-
* this method is called on.
196+
* @throws MathException If a number is not valid, or is not convertible to an instance of the class this method is
197+
* called on.
193198
*
194199
* @pure
195200
*/

0 commit comments

Comments
 (0)