Skip to content

Commit 00db432

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 2cdf698 + 7d947f9 commit 00db432

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Adapter/ExtLdap/Collection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,29 @@ public function offsetExists($offset)
9797
return isset($this->entries[$offset]);
9898
}
9999

100+
/**
101+
* @return mixed
102+
*/
100103
public function offsetGet($offset)
101104
{
102105
$this->toArray();
103106

104107
return $this->entries[$offset] ?? null;
105108
}
106109

110+
/**
111+
* @return void
112+
*/
107113
public function offsetSet($offset, $value)
108114
{
109115
$this->toArray();
110116

111117
$this->entries[$offset] = $value;
112118
}
113119

120+
/**
121+
* @return void
122+
*/
114123
public function offsetUnset($offset)
115124
{
116125
$this->toArray();

Adapter/ExtLdap/Connection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class Connection extends AbstractConnection
3535
/** @var resource */
3636
private $connection;
3737

38+
/**
39+
* @return array
40+
*/
3841
public function __sleep()
3942
{
4043
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

Adapter/ExtLdap/Query.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __construct(Connection $connection, string $dn, string $query, a
3838
parent::__construct($connection, $dn, $query, $options);
3939
}
4040

41+
/**
42+
* @return array
43+
*/
4144
public function __sleep()
4245
{
4346
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

0 commit comments

Comments
 (0)