Skip to content

Commit b15d12e

Browse files
committed
add phpdoc return types for arrayaccess methods
1 parent b096495 commit b15d12e

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

lib/ElementList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ElementList extends ArrayIterator
2424
*
2525
* @param int $offset
2626
* @param mixed $value
27+
* @return void
2728
*/
2829
#[\ReturnTypeWillChange]
2930
public function offsetSet($offset, $value)
@@ -37,6 +38,7 @@ public function offsetSet($offset, $value)
3738
* This method just forwards the request to the inner iterator
3839
*
3940
* @param int $offset
41+
* @return void
4042
*/
4143
#[\ReturnTypeWillChange]
4244
public function offsetUnset($offset)

lib/Node.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ public function offsetGet($offset)
212212
*
213213
* @param int $offset
214214
* @param mixed $value
215+
* @return void
215216
*/
216217
#[\ReturnTypeWillChange]
217218
public function offsetSet($offset, $value)
@@ -233,6 +234,7 @@ public function offsetSet($offset, $value)
233234
* This method just forwards the request to the inner iterator
234235
*
235236
* @param int $offset
237+
* @return void
236238
*/
237239
#[\ReturnTypeWillChange]
238240
public function offsetUnset($offset)

lib/Property.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ public function offsetGet($name)
457457
*
458458
* @param string $name
459459
* @param mixed $value
460+
* @return void
460461
*/
461462
#[\ReturnTypeWillChange]
462463
public function offsetSet($name, $value)
@@ -478,6 +479,7 @@ public function offsetSet($name, $value)
478479
* Removes one or more parameters with the specified name.
479480
*
480481
* @param string $name
482+
* @return void
481483
*/
482484
#[\ReturnTypeWillChange]
483485
public function offsetUnset($name)

lib/Property/ICalendar/DateTime.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ function ($item) {
299299
*
300300
* @param string $name
301301
* @param mixed $value
302+
* @return void
302303
*/
303304
#[\ReturnTypeWillChange]
304305
public function offsetSet($name, $value)

0 commit comments

Comments
 (0)