Skip to content
Snippets Groups Projects
Commit 65794f99 authored by jurgenhaas's avatar jurgenhaas
Browse files

Locally patch grahl/ldap deprecations

parent 51a9795e
Branches
Tags
1 merge request!50Merging develop into main
Pipeline #858529 passed
......@@ -236,6 +236,9 @@
"drupal/views_tree": {
"#3344199 Add event just once": "https://git.drupalcode.org/project/views_tree/-/merge_requests/12.diff"
},
"grahl/ldap": {
"Remove deprecation warnings": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/grahl-ldap.patch"
},
"henrywhitaker3/healthchecks-io": {
"#76 Double slashes in URL": "https://patch-diff.githubusercontent.com/raw/henrywhitaker3/PHP-healthchecks.io/pull/77.diff"
},
......
......@@ -240,6 +240,9 @@
"drupal/views_tree": {
"#3344199 Add event just once": "https://git.drupalcode.org/project/views_tree/-/merge_requests/12.diff"
},
"grahl/ldap": {
"Remove deprecation warnings": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/grahl-ldap.patch"
},
"henrywhitaker3/healthchecks-io": {
"#76 Double slashes in URL": "https://patch-diff.githubusercontent.com/raw/henrywhitaker3/PHP-healthchecks.io/pull/77.diff"
},
......
diff --git a/Adapter/ExtLdap/Collection.php b/Adapter/ExtLdap/Collection.php
--- a/Adapter/ExtLdap/Collection.php
+++ b/Adapter/ExtLdap/Collection.php (date 1683555859148)
@@ -45,7 +45,7 @@
/**
* @return int
*/
- public function count():
+ public function count(): int
{
$con = $this->connection->getResource();
$searches = $this->search->getResources();
@@ -64,7 +64,7 @@
/**
* @return \Traversable
*/
- public function getIterator()
+ public function getIterator(): \Traversable
{
if (0 === $this->count()) {
return;
@@ -90,28 +90,28 @@
/**
* @return bool
*/
- public function offsetExists($offset)
+ public function offsetExists($offset): bool
{
$this->toArray();
return isset($this->entries[$offset]);
}
- public function offsetGet($offset)
+ public function offsetGet($offset): mixed
{
$this->toArray();
return isset($this->entries[$offset]) ? $this->entries[$offset] : null;
}
- public function offsetSet($offset, $value)
+ public function offsetSet($offset, $value): void
{
$this->toArray();
$this->entries[$offset] = $value;
}
- public function offsetUnset($offset)
+ public function offsetUnset($offset): void
{
$this->toArray();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment