@@ -7,44 +7,44 @@ interface NumberValue extends Value, Numberable
77 // comparators
88
99 /**
10- * @param int| float|numeric-string|Numberable $other
11- * @return int { -1, 0, 1}
10+ * @param float|int |numeric-string|Numberable $other
11+ * @return int< -1,1>
1212 */
13- public function compare ($ other ): int ;
13+ public function compare (float | int | string | Numberable $ other ): int ;
1414
1515 /**
16- * @param int| float|numeric-string|Numberable $other
16+ * @param float|int |numeric-string|Numberable $other
1717 */
18- public function equals ($ other ): bool ;
18+ public function equals (float | int | string | Numberable $ other ): bool ;
1919
2020 // basic math
2121
2222 /**
23- * @param int| float|numeric-string|Numberable $other
23+ * @param float|int |numeric-string|Numberable $other
2424 */
25- public function add ($ other ): NumberValue ;
25+ public function add (float | int | string | Numberable $ other ): NumberValue ;
2626
2727 /**
28- * @param int| float|numeric-string|Numberable $other
28+ * @param float|int |numeric-string|Numberable $other
2929 */
30- public function subtract ($ other ): NumberValue ;
30+ public function subtract (float | int | string | Numberable $ other ): NumberValue ;
3131
3232 /**
33- * @param int| float|numeric-string|Numberable $other
33+ * @param float|int |numeric-string|Numberable $other
3434 */
35- public function multiply ($ other ): NumberValue ;
35+ public function multiply (float | int | string | Numberable $ other ): NumberValue ;
3636
3737 /**
38- * @param int| float|numeric-string|Numberable $other
38+ * @param float|int |numeric-string|Numberable $other
3939 */
40- public function divide ($ other ): NumberValue ;
40+ public function divide (float | int | string | Numberable $ other ): NumberValue ;
4141
4242 public function abs (): NumberValue ;
4343
4444 /**
45- * @param int| float|numeric-string|Numberable $divider
45+ * @param float|int |numeric-string|Numberable $divider
4646 */
47- public function modulo ($ divider ): NumberValue ;
47+ public function modulo (float | int | string | Numberable $ divider ): NumberValue ;
4848
4949 // rounding
5050
0 commit comments