Skip to content

Commit 2e9a4b8

Browse files
committed
Update stubs
1 parent eb23e72 commit 2e9a4b8

File tree

142 files changed

+371
-9989
lines changed

Some content is hidden

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

142 files changed

+371
-9989
lines changed

Diff for: stubs/Zend/ArrayAccess.php

+3-22
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,15 @@
22

33
interface ArrayAccess
44
{
5-
/** @return bool */
6-
#[\Until('8.1')]
7-
public function offsetExists(mixed $offset);
85
/** @tentative-return-type */
9-
#[\Since('8.1')]
10-
public function offsetExists(mixed $offset) : bool;
11-
/**
12-
* Actually this should be return by ref but atm cannot be.
13-
* @return mixed
14-
*/
15-
#[\Until('8.1')]
16-
public function offsetGet(mixed $offset);
6+
public function offsetExists(mixed $offset);
177
/**
188
* Actually this should be return by ref but atm cannot be.
199
* @tentative-return-type
2010
*/
21-
#[\Since('8.1')]
22-
public function offsetGet(mixed $offset) : mixed;
23-
/** @return void */
24-
#[\Until('8.1')]
11+
public function offsetGet(mixed $offset);
12+
/** @tentative-return-type */
2513
public function offsetSet(mixed $offset, mixed $value);
2614
/** @tentative-return-type */
27-
#[\Since('8.1')]
28-
public function offsetSet(mixed $offset, mixed $value) : void;
29-
/** @return void */
30-
#[\Until('8.1')]
3115
public function offsetUnset(mixed $offset);
32-
/** @tentative-return-type */
33-
#[\Since('8.1')]
34-
public function offsetUnset(mixed $offset) : void;
3516
}

Diff for: stubs/Zend/Countable.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
interface Countable
44
{
5-
/** @return int */
6-
#[\Until('8.1')]
7-
public function count();
85
/** @tentative-return-type */
9-
#[\Since('8.1')]
10-
public function count() : int;
6+
public function count();
117
}

Diff for: stubs/Zend/Error.php

+1-10
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,11 @@ private function __clone() : void
1616
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
1717
{
1818
}
19-
/**
20-
* @return void
21-
* @implementation-alias Exception::__wakeup
22-
*/
23-
#[\Until('8.1')]
24-
public function __wakeup()
25-
{
26-
}
2719
/**
2820
* @tentative-return-type
2921
* @implementation-alias Exception::__wakeup
3022
*/
31-
#[\Since('8.1')]
32-
public function __wakeup() : void
23+
public function __wakeup()
3324
{
3425
}
3526
/** @implementation-alias Exception::getMessage */

Diff for: stubs/Zend/Exception.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,8 @@ private function __clone() : void
1313
public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
1414
{
1515
}
16-
/** @return void */
17-
#[\Until('8.1')]
18-
public function __wakeup()
19-
{
20-
}
2116
/** @tentative-return-type */
22-
#[\Since('8.1')]
23-
public function __wakeup() : void
17+
public function __wakeup()
2418
{
2519
}
2620
public final function getMessage() : string

Diff for: stubs/Zend/Iterator.php

+1-21
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,14 @@
22

33
interface Iterator extends \Traversable
44
{
5-
/** @return mixed */
6-
#[\Until('8.1')]
5+
/** @tentative-return-type */
76
public function current();
87
/** @tentative-return-type */
9-
#[\Since('8.1')]
10-
public function current() : mixed;
11-
/** @return void */
12-
#[\Until('8.1')]
138
public function next();
149
/** @tentative-return-type */
15-
#[\Since('8.1')]
16-
public function next() : void;
17-
/** @return mixed */
18-
#[\Until('8.1')]
1910
public function key();
2011
/** @tentative-return-type */
21-
#[\Since('8.1')]
22-
public function key() : mixed;
23-
/** @return bool */
24-
#[\Until('8.1')]
2512
public function valid();
2613
/** @tentative-return-type */
27-
#[\Since('8.1')]
28-
public function valid() : bool;
29-
/** @return void */
30-
#[\Until('8.1')]
3114
public function rewind();
32-
/** @tentative-return-type */
33-
#[\Since('8.1')]
34-
public function rewind() : void;
3515
}

Diff for: stubs/Zend/IteratorAggregate.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
interface IteratorAggregate extends \Traversable
44
{
5-
/** @return Traversable */
6-
#[\Until('8.1')]
7-
public function getIterator();
85
/** @tentative-return-type */
9-
#[\Since('8.1')]
10-
public function getIterator() : Traversable;
6+
public function getIterator();
117
}

Diff for: stubs/ext/curl/CURLFile.php

+1-31
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,24 @@ class CURLFile
77
public function __construct(string $filename, ?string $mime_type = null, ?string $posted_filename = null)
88
{
99
}
10-
/** @return string */
11-
#[\Until('8.1')]
10+
/** @tentative-return-type */
1211
public function getFilename()
1312
{
1413
}
1514
/** @tentative-return-type */
16-
#[\Since('8.1')]
17-
public function getFilename() : string
18-
{
19-
}
20-
/** @return string */
21-
#[\Until('8.1')]
2215
public function getMimeType()
2316
{
2417
}
2518
/** @tentative-return-type */
26-
#[\Since('8.1')]
27-
public function getMimeType() : string
28-
{
29-
}
30-
/** @return string */
31-
#[\Until('8.1')]
3219
public function getPostFilename()
3320
{
3421
}
3522
/** @tentative-return-type */
36-
#[\Since('8.1')]
37-
public function getPostFilename() : string
38-
{
39-
}
40-
/** @return void */
41-
#[\Until('8.1')]
4223
public function setMimeType(string $mime_type)
4324
{
4425
}
4526
/** @tentative-return-type */
46-
#[\Since('8.1')]
47-
public function setMimeType(string $mime_type) : void
48-
{
49-
}
50-
/** @return void */
51-
#[\Until('8.1')]
5227
public function setPostFilename(string $posted_filename)
5328
{
5429
}
55-
/** @tentative-return-type */
56-
#[\Since('8.1')]
57-
public function setPostFilename(string $posted_filename) : void
58-
{
59-
}
6030
}

Diff for: stubs/ext/date/DateInterval.php

+2-32
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,25 @@ public function __construct(string $duration)
66
{
77
}
88
/**
9-
* @return DateInterval|false
9+
* @tentative-return-type
1010
* @alias date_interval_create_from_date_string
1111
*/
12-
#[\Until('8.1')]
1312
public static function createFromDateString(string $datetime)
1413
{
1514
}
1615
/**
1716
* @tentative-return-type
18-
* @alias date_interval_create_from_date_string
19-
*/
20-
#[\Since('8.1')]
21-
public static function createFromDateString(string $datetime) : DateInterval|false
22-
{
23-
}
24-
/**
25-
* @return string
2617
* @alias date_interval_format
2718
*/
28-
#[\Until('8.1')]
2919
public function format(string $format)
3020
{
3121
}
32-
/**
33-
* @tentative-return-type
34-
* @alias date_interval_format
35-
*/
36-
#[\Since('8.1')]
37-
public function format(string $format) : string
38-
{
39-
}
40-
/** @return void */
41-
#[\Until('8.1')]
22+
/** @tentative-return-type */
4223
public function __wakeup()
4324
{
4425
}
4526
/** @tentative-return-type */
46-
#[\Since('8.1')]
47-
public function __wakeup() : void
48-
{
49-
}
50-
/** @return DateInterval */
51-
#[\Until('8.1')]
5227
public static function __set_state(array $array)
5328
{
5429
}
55-
/** @tentative-return-type */
56-
#[\Since('8.1')]
57-
public static function __set_state(array $array) : DateInterval
58-
{
59-
}
6030
}

Diff for: stubs/ext/date/DatePeriod.php

+1-37
Original file line numberDiff line numberDiff line change
@@ -11,66 +11,30 @@ class DatePeriod implements \IteratorAggregate
1111
public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN)
1212
{
1313
}
14-
/** @return DateTimeInterface */
15-
#[\Until('8.1')]
14+
/** @tentative-return-type */
1615
public function getStartDate()
1716
{
1817
}
1918
/** @tentative-return-type */
20-
#[\Since('8.1')]
21-
public function getStartDate() : DateTimeInterface
22-
{
23-
}
24-
/** @return DateTimeInterface|null */
25-
#[\Until('8.1')]
2619
public function getEndDate()
2720
{
2821
}
2922
/** @tentative-return-type */
30-
#[\Since('8.1')]
31-
public function getEndDate() : ?DateTimeInterface
32-
{
33-
}
34-
/** @return DateInterval */
35-
#[\Until('8.1')]
3623
public function getDateInterval()
3724
{
3825
}
3926
/** @tentative-return-type */
40-
#[\Since('8.1')]
41-
public function getDateInterval() : DateInterval
42-
{
43-
}
44-
/** @return int|null */
45-
#[\Until('8.1')]
4627
public function getRecurrences()
4728
{
4829
}
4930
/** @tentative-return-type */
50-
#[\Since('8.1')]
51-
public function getRecurrences() : ?int
52-
{
53-
}
54-
/** @return void */
55-
#[\Until('8.1')]
5631
public function __wakeup()
5732
{
5833
}
5934
/** @tentative-return-type */
60-
#[\Since('8.1')]
61-
public function __wakeup() : void
62-
{
63-
}
64-
/** @return DatePeriod */
65-
#[\Until('8.1')]
6635
public static function __set_state(array $array)
6736
{
6837
}
69-
/** @tentative-return-type */
70-
#[\Since('8.1')]
71-
public static function __set_state(array $array) : DatePeriod
72-
{
73-
}
7438
public function getIterator() : Iterator
7539
{
7640
}

0 commit comments

Comments
 (0)