Skip to content

Commit 27e18b7

Browse files
committed
wip
1 parent 19ee60b commit 27e18b7

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

ext/bcmath/bcmath.stub.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,52 @@ function bcround(string $num, int $precision = 0, int $mode = PHP_ROUND_HALF_UP)
4545
class Number {
4646
public function __construct(string|int $num) {}
4747

48+
/** @tentative-return-type */
4849
public function add(Number|string|int $num, ?int $scale = null): Number {}
4950

51+
/** @tentative-return-type */
5052
public function sub(Number|string|int $num, ?int $scale = null): Number {}
5153

54+
/** @tentative-return-type */
5255
public function mul(Number|string|int $num, ?int $scale = null): Number {}
5356

57+
/** @tentative-return-type */
5458
public function div(Number|string|int $num, ?int $scale = null): Number {}
5559

60+
/** @tentative-return-type */
5661
public function mod(Number|string|int $num, ?int $scale = null): Number {}
5762

63+
/** @tentative-return-type */
5864
public function powmod(Number|string|int $exponent, Number|string|int $modulus, ?int $scale = null): Number {}
5965

66+
/** @tentative-return-type */
6067
public function pow(Number|string|int $exponent, int $minScale, ?int $scale = null): Number {}
6168

69+
/** @tentative-return-type */
6270
public function sqrt(?int $scale = null): Number {}
6371

72+
/** @tentative-return-type */
6473
public function eq(Number|string|int $num, ?int $scale = null): bool {}
6574

75+
/** @tentative-return-type */
6676
public function gt(Number|string|int $num, ?int $scale = null): bool {}
6777

78+
/** @tentative-return-type */
6879
public function gte(Number|string|int $num, ?int $scale = null): bool {}
6980

81+
/** @tentative-return-type */
7082
public function lt(Number|string|int $num, ?int $scale = null): bool {}
7183

84+
/** @tentative-return-type */
7285
public function lte(Number|string|int $num, ?int $scale = null): bool {}
7386

87+
/** @tentative-return-type */
7488
public function floor(): Number {}
7589

90+
/** @tentative-return-type */
7691
public function ceil(): Number {}
7792

93+
/** @tentative-return-type */
7894
public function round(int $precision = 0, int $mode = PHP_ROUND_HALF_UP): Number {}
7995
}
8096
}

ext/bcmath/bcmath_arginfo.h

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)