Skip to content

Commit 8396327

Browse files
committed
Update stubs
1 parent 2f200f1 commit 8396327

File tree

669 files changed

+12800
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

669 files changed

+12800
-102
lines changed

Php8StubsMap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,7 @@ public function __construct(int $phpVersionId)
28532853
if ($phpVersionId >= 80500) {
28542854
$classes = \array_merge($classes, [
28552855
'curlsharepersistenthandle' => 'stubs/ext/curl/CurlSharePersistentHandle.php',
2856+
'delayedtargetvalidation' => 'stubs/Zend/DelayedTargetValidation.php',
28562857
'intllistformatter' => 'stubs/ext/intl/listformatter/IntlListFormatter.php',
28572858
'nodiscard' => 'stubs/Zend/NoDiscard.php',
28582859
'uri\\invaliduriexception' => 'stubs/ext/uri/Uri/InvalidUriException.php',
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
/**
4+
* @strict-properties
5+
*/
6+
#[\Attribute(Attribute::TARGET_ALL)]
7+
#[\Since('8.5')]
8+
final class DelayedTargetValidation
9+
{
10+
}

stubs/Zend/Error.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ final private function __clone(): void
99
}
1010
/** @implementation-alias Exception::__clone */
1111
#[\Since('8.1')]
12+
#[\Until('8.2')]
13+
private function __clone(): void
14+
{
15+
}
16+
/** @implementation-alias Exception::__clone */
17+
#[\Since('8.2')]
18+
#[\Until('8.3')]
19+
private function __clone(): void
20+
{
21+
}
22+
/** @implementation-alias Exception::__clone */
23+
#[\Since('8.3')]
24+
#[\Until('8.4')]
25+
private function __clone(): void
26+
{
27+
}
28+
/** @implementation-alias Exception::__clone */
29+
#[\Since('8.4')]
30+
#[\Until('8.5')]
31+
private function __clone(): void
32+
{
33+
}
34+
/** @implementation-alias Exception::__clone */
35+
#[\Since('8.5')]
1236
private function __clone(): void
1337
{
1438
}

stubs/Zend/Exception.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ final private function __clone(): void
77
{
88
}
99
#[\Since('8.1')]
10+
#[\Until('8.2')]
11+
private function __clone(): void
12+
{
13+
}
14+
#[\Since('8.2')]
15+
#[\Until('8.3')]
16+
private function __clone(): void
17+
{
18+
}
19+
#[\Since('8.3')]
20+
#[\Until('8.4')]
21+
private function __clone(): void
22+
{
23+
}
24+
#[\Since('8.4')]
25+
#[\Until('8.5')]
26+
private function __clone(): void
27+
{
28+
}
29+
#[\Since('8.5')]
1030
private function __clone(): void
1131
{
1232
}

stubs/Zend/Generator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function getReturn(): mixed
2828
{
2929
}
3030
#[\Since('8.4')]
31+
#[\Until('8.5')]
32+
public function __debugInfo(): array
33+
{
34+
}
35+
#[\Since('8.5')]
3136
public function __debugInfo(): array
3237
{
3338
}

stubs/Zend/InternalIterator.php

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,52 @@ public function current();
88
/** @return mixed */
99
#[\Until('8.1')]
1010
public function key();
11-
private function __construct();
1211
#[\Since('8.1')]
12+
#[\Until('8.2')]
1313
public function current(): mixed
1414
{
1515
}
1616
#[\Since('8.1')]
17+
#[\Until('8.2')]
18+
public function key(): mixed
19+
{
20+
}
21+
#[\Since('8.2')]
22+
#[\Until('8.3')]
23+
public function current(): mixed
24+
{
25+
}
26+
#[\Since('8.2')]
27+
#[\Until('8.3')]
28+
public function key(): mixed
29+
{
30+
}
31+
#[\Since('8.3')]
32+
#[\Until('8.4')]
33+
public function current(): mixed
34+
{
35+
}
36+
#[\Since('8.3')]
37+
#[\Until('8.4')]
38+
public function key(): mixed
39+
{
40+
}
41+
private function __construct();
42+
#[\Since('8.4')]
43+
#[\Until('8.5')]
44+
public function current(): mixed
45+
{
46+
}
47+
#[\Since('8.5')]
48+
public function current(): mixed
49+
{
50+
}
51+
#[\Since('8.4')]
52+
#[\Until('8.5')]
53+
public function key(): mixed
54+
{
55+
}
56+
#[\Since('8.5')]
1757
public function key(): mixed
1858
{
1959
}

stubs/Zend/define.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ function define(string $constant_name, $value, bool $case_insensitive = false):
66
{
77
}
88
#[\Since('8.1')]
9+
#[\Until('8.2')]
10+
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool
11+
{
12+
}
13+
#[\Since('8.2')]
14+
#[\Until('8.3')]
15+
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool
16+
{
17+
}
18+
#[\Since('8.3')]
19+
#[\Until('8.4')]
20+
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool
21+
{
22+
}
23+
#[\Since('8.4')]
24+
#[\Until('8.5')]
25+
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool
26+
{
27+
}
28+
#[\Since('8.5')]
929
function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool
1030
{
1131
}

stubs/Zend/die.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
/** @alias exit */
44
#[\Since('8.4')]
5+
#[\Until('8.5')]
6+
function die(string|int $status = 0): never
7+
{
8+
}
9+
/** @alias exit */
10+
#[\Since('8.5')]
511
function die(string|int $status = 0): never
612
{
713
}

stubs/Zend/enum_exists.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
<?php
22

33
#[\Since('8.1')]
4+
#[\Until('8.2')]
5+
function enum_exists(string $enum, bool $autoload = true): bool
6+
{
7+
}
8+
#[\Since('8.2')]
9+
#[\Until('8.3')]
10+
function enum_exists(string $enum, bool $autoload = true): bool
11+
{
12+
}
13+
#[\Since('8.3')]
14+
#[\Until('8.4')]
15+
function enum_exists(string $enum, bool $autoload = true): bool
16+
{
17+
}
18+
#[\Since('8.4')]
19+
#[\Until('8.5')]
20+
function enum_exists(string $enum, bool $autoload = true): bool
21+
{
22+
}
23+
#[\Since('8.5')]
424
function enum_exists(string $enum, bool $autoload = true): bool
525
{
626
}

stubs/Zend/exit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?php
22

33
#[\Since('8.4')]
4+
#[\Until('8.5')]
5+
function exit(string|int $status = 0): never
6+
{
7+
}
8+
#[\Since('8.5')]
49
function exit(string|int $status = 0): never
510
{
611
}

0 commit comments

Comments
 (0)