Skip to content

Commit 92b7e68

Browse files
Add missing return void
1 parent 6c034ae commit 92b7e68

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

ds/ds.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ public function offsetGet(mixed $offset) {}
827827
/**
828828
* @param int $offset
829829
* @param TValue $value
830+
*
831+
* @return void
830832
*/
831833
public function offsetSet(mixed $offset, mixed $value) {}
832834

@@ -1207,6 +1209,8 @@ public function offsetGet(mixed $offset) {}
12071209
/**
12081210
* @param int $offset
12091211
* @param TValue $value
1212+
*
1213+
* @return void
12101214
*/
12111215
public function offsetSet(mixed $offset, mixed $value) {}
12121216

@@ -1238,6 +1242,8 @@ public function __construct(...$values) {}
12381242
* <p><b>Note:</b> Capacity will stay the same if this value is less than or equal to the current capacity.</p>
12391243
* Capacity will always be rounded up to the nearest power of 2.
12401244
*
1245+
* @return void
1246+
*
12411247
* @link https://www.php.net/manual/en/ds-map.allocate.php
12421248
*/
12431249
public function allocate(int $capacity) {}
@@ -1248,6 +1254,8 @@ public function allocate(int $capacity) {}
12481254
* @param callable(TKey, TValue): TValue $callback A callable to apply to each value in the map. The callback should return what
12491255
* the value should be replaced by.
12501256
*
1257+
* @return void
1258+
*
12511259
* @link https://www.php.net/manual/en/ds-map.apply.php
12521260
*/
12531261
public function apply(callable $callback) {}
@@ -1441,6 +1449,7 @@ public function keys(): Set {}
14411449

14421450
/**
14431451
* Sorts the map in-place by key, using an optional comparator function.
1452+
*
14441453
* @param callable(TKey, TKey):int|null $comparator The comparison function must return
14451454
* an integer less than, equal to, or greater than zero if the first
14461455
* argument is considered to be respectively less than, equal to, or
@@ -1452,6 +1461,7 @@ public function keys(): Set {}
14521461
* callback's return value. So values such as 0.99 and 0.1 will both be
14531462
* cast to an integer value of 0, which will compare such values as
14541463
* equal.</p>
1464+
* @return void
14551465
* @link https://www.php.net/manual/en/ds-map.ksort.php
14561466
*/
14571467
public function ksort(?callable $comparator = null) {}
@@ -1544,6 +1554,8 @@ public function pairs(): Sequence {}
15441554
* attempt to access int(1), while $map->get("1") will correctly look up
15451555
* the string key.
15461556
*
1557+
* @return void
1558+
*
15471559
* @link https://www.php.net/manual/en/ds-map.put.php
15481560
*/
15491561
public function put($key, $value) {}
@@ -1559,6 +1571,8 @@ public function put($key, $value) {}
15591571
*
15601572
* @param iterable<TKey, TValue> $pairs traversable object or array.
15611573
*
1574+
* @return void
1575+
*
15621576
* @link https://www.php.net/manual/en/ds-map.putall.php
15631577
*/
15641578
public function putAll($pairs) {}
@@ -1618,6 +1632,8 @@ public function remove($key, $default = null) {}
16181632
/**
16191633
* Reverses the map in-place.
16201634
*
1635+
* @return void
1636+
*
16211637
* @link https://www.php.net/manual/en/ds-map.reverse.php
16221638
*/
16231639
public function reverse() {}
@@ -1686,6 +1702,8 @@ public function slice(int $index, ?int $length = null): Map {}
16861702
* cast to an integer value of 0, which will compare such values as
16871703
* equal.
16881704
*
1705+
* @return void
1706+
*
16891707
* @link https://www.php.net/manual/en/ds-map.sort.php
16901708
*/
16911709
public function sort(?callable $comparator = null) {}
@@ -1788,6 +1806,8 @@ public function offsetGet(mixed $offset) {}
17881806
/**
17891807
* @param TKey $offset
17901808
* @param TValue $value
1809+
*
1810+
* @return void
17911811
*/
17921812
public function offsetSet(mixed $offset, mixed $value) {}
17931813

@@ -1828,6 +1848,8 @@ public function __construct($key = null, $value = null) {}
18281848
/**
18291849
* Removes all values from the pair.
18301850
*
1851+
* @return void
1852+
*
18311853
* @link https://php.net/manual/en/ds-pair.clear.php
18321854
*/
18331855
public function clear() {}
@@ -1907,6 +1929,8 @@ public function __construct(iterable $values = []) {}
19071929
*
19081930
* @param TValue ...$values Values to add to the set.
19091931
*
1932+
* @return void
1933+
*
19101934
* @link https://php.net/manual/en/ds-set.add.php
19111935
*/
19121936
public function add(...$values) {}
@@ -1922,6 +1946,8 @@ public function add(...$values) {}
19221946
*
19231947
* <p>Capacity will always be rounded up to the nearest power of 2.
19241948
*
1949+
* @return void
1950+
*
19251951
* @link https://php.net/manual/en/ds-set.allocate.php
19261952
*/
19271953
public function allocate(int $capacity) {}
@@ -2125,12 +2151,16 @@ public function reduce(callable $callback, $initial = null) {}
21252151
* @link https://www.php.net/manual/en/ds-set.remove.php
21262152
*
21272153
* @param TValue ...$values The values to remove.
2154+
*
2155+
* @return void
21282156
*/
21292157
public function remove(...$values) {}
21302158

21312159
/**
21322160
* Reverses the set in-place.
21332161
*
2162+
* @return void
2163+
*
21342164
* @link https://www.php.net/manual/en/ds-set.reverse.php
21352165
*/
21362166
public function reverse() {}
@@ -2191,6 +2221,8 @@ public function last() {}
21912221
* both be cast to an integer value of 0, which will compare such values
21922222
* as equal.</note>
21932223
*
2224+
* @return void
2225+
*
21942226
* @link https://www.php.net/manual/en/ds-set.sort.php
21952227
*/
21962228
public function sort(?callable $comparator = null) {}
@@ -2296,6 +2328,8 @@ public function offsetGet(mixed $offset) {}
22962328
/**
22972329
* @param int $offset
22982330
* @param TValue $value
2331+
*
2332+
* @return void
22992333
*/
23002334
public function offsetSet(mixed $offset, mixed $value) {}
23012335

@@ -2338,6 +2372,8 @@ public function __construct($values = []) {}
23382372
* @param int $capacity The number of values for which capacity should
23392373
* be allocated.
23402374
*
2375+
* @return void
2376+
*
23412377
* <p><b>Note:</b> Capacity will stay the same if this value is less than or
23422378
* equal to the current capacity.</p>
23432379
*/
@@ -2434,6 +2470,8 @@ public function pop() {}
24342470
* @link https://www.php.net/manual/en/ds-queue.push.php
24352471
*
24362472
* @param TValue ...$values The values to push onto the stack.
2473+
*
2474+
* @return void
24372475
*/
24382476
public function push(...$values) {}
24392477

@@ -2452,6 +2490,8 @@ public function offsetGet(mixed $offset) {}
24522490
/**
24532491
* @param int $offset
24542492
* @param TValue $value
2493+
*
2494+
* @return void
24552495
*/
24562496
public function offsetSet(mixed $offset, mixed $value) {}
24572497

@@ -2494,6 +2534,8 @@ public function __construct($values = []) {}
24942534
* @param int $capacity The number of values for which capacity should
24952535
* be allocated.
24962536
*
2537+
* @return void
2538+
*
24972539
* <p><b>Note:</b> Capacity will stay the same if this value is less than or
24982540
* equal to the current capacity.</p>
24992541
*/
@@ -2590,6 +2632,8 @@ public function pop() {}
25902632
* @link https://www.php.net/manual/en/ds-queue.push.php
25912633
*
25922634
* @param TValue ...$values The values to push onto the queue.
2635+
*
2636+
* @return void
25932637
*/
25942638
public function push(...$values) {}
25952639

@@ -2608,6 +2652,8 @@ public function offsetGet(mixed $offset) {}
26082652
/**
26092653
* @param int $offset
26102654
* @param TValue $value
2655+
*
2656+
* @return void
26112657
*/
26122658
public function offsetSet(mixed $offset, mixed $value) {}
26132659

@@ -2709,6 +2755,8 @@ public function pop() {}
27092755
*
27102756
* @param TValue $value
27112757
* @param int $priority
2758+
*
2759+
* @return void
27122760
*/
27132761
public function push($value, int $priority) {}
27142762

0 commit comments

Comments
 (0)