Skip to content

Commit 607eedc

Browse files
committed
Update stubs
1 parent 07a7167 commit 607eedc

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

Php8StubsMap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,6 +2752,7 @@ public function __construct(int $phpVersionId)
27522752

27532753
if ($phpVersionId >= 80400) {
27542754
$classes = \array_merge($classes, [
2755+
'bcmath\\number' => 'stubs/ext/bcmath/BcMath/Number.php',
27552756
'dba\\connection' => 'stubs/ext/dba/Dba/Connection.php',
27562757
'deprecated' => 'stubs/Zend/Deprecated.php',
27572758
'dom\\attr' => 'stubs/ext/dom/Dom/Attr.php',

stubs/ext/bcmath/BcMath/Number.php

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
3+
namespace BcMath;
4+
5+
/** @strict-properties */
6+
#[\Since('8.4')]
7+
final readonly class Number implements \Stringable
8+
{
9+
/** @virtual */
10+
public string $value;
11+
/** @virtual */
12+
public int $scale;
13+
public function __construct(string|int $num)
14+
{
15+
}
16+
public function add(Number|string|int $num, ?int $scale = null): Number
17+
{
18+
}
19+
public function sub(Number|string|int $num, ?int $scale = null): Number
20+
{
21+
}
22+
public function mul(Number|string|int $num, ?int $scale = null): Number
23+
{
24+
}
25+
public function div(Number|string|int $num, ?int $scale = null): Number
26+
{
27+
}
28+
public function mod(Number|string|int $num, ?int $scale = null): Number
29+
{
30+
}
31+
public function powmod(Number|string|int $exponent, Number|string|int $modulus, ?int $scale = null): Number
32+
{
33+
}
34+
public function pow(Number|string|int $exponent, ?int $scale = null): Number
35+
{
36+
}
37+
public function sqrt(?int $scale = null): Number
38+
{
39+
}
40+
public function floor(): Number
41+
{
42+
}
43+
public function ceil(): Number
44+
{
45+
}
46+
public function round(int $precision = 0, \RoundingMode $mode = \RoundingMode::HalfAwayFromZero): Number
47+
{
48+
}
49+
public function compare(Number|string|int $num, ?int $scale = null): int
50+
{
51+
}
52+
public function __toString(): string
53+
{
54+
}
55+
public function __serialize(): array
56+
{
57+
}
58+
public function __unserialize(array $data): void
59+
{
60+
}
61+
}

0 commit comments

Comments
 (0)