Skip to content

Commit f1d1420

Browse files
Merge branch '5.2' into 5.3
* 5.2: [5.2] Add missing `@return` annotations [4.4] Add missing `@return` annotations Handle lock with long key #42227 update phpdoc to recommend createIndex over ensureIndex
2 parents 949fed1 + 23ae12a commit f1d1420

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Data/Util/ArrayAccessibleResourceBundle.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,25 @@ public function offsetExists($offset): bool
4444
return null !== $this->bundleImpl->get($offset);
4545
}
4646

47+
/**
48+
* @return mixed
49+
*/
4750
public function offsetGet($offset)
4851
{
4952
return $this->get($offset);
5053
}
5154

55+
/**
56+
* @return void
57+
*/
5258
public function offsetSet($offset, $value)
5359
{
5460
throw new BadMethodCallException('Resource bundles cannot be modified.');
5561
}
5662

63+
/**
64+
* @return void
65+
*/
5766
public function offsetUnset($offset)
5867
{
5968
throw new BadMethodCallException('Resource bundles cannot be modified.');

Data/Util/RingBuffer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function offsetExists($key): bool
4949

5050
/**
5151
* {@inheritdoc}
52+
*
53+
* @return mixed
5254
*/
5355
public function offsetGet($key)
5456
{
@@ -61,6 +63,8 @@ public function offsetGet($key)
6163

6264
/**
6365
* {@inheritdoc}
66+
*
67+
* @return void
6468
*/
6569
public function offsetSet($key, $value)
6670
{
@@ -76,6 +80,8 @@ public function offsetSet($key, $value)
7680

7781
/**
7882
* {@inheritdoc}
83+
*
84+
* @return void
7985
*/
8086
public function offsetUnset($key)
8187
{

0 commit comments

Comments
 (0)