Skip to content

Commit 3edd60b

Browse files
Merge branch '5.4' into 6.0
* 5.4: [Cache] Add missing return type [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 620bc30 + 9395a6e commit 3edd60b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Data/Util/ArrayAccessibleResourceBundle.php

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

47-
public function offsetGet(mixed $offset)
47+
public function offsetGet(mixed $offset): mixed
4848
{
4949
return $this->get($offset);
5050
}
5151

52-
public function offsetSet(mixed $offset, mixed $value)
52+
public function offsetSet(mixed $offset, mixed $value): void
5353
{
5454
throw new BadMethodCallException('Resource bundles cannot be modified.');
5555
}
5656

57-
public function offsetUnset(mixed $offset)
57+
public function offsetUnset(mixed $offset): void
5858
{
5959
throw new BadMethodCallException('Resource bundles cannot be modified.');
6060
}

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(mixed $key): bool
4949

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

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

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

0 commit comments

Comments
 (0)