We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ebcf7b7 + e6a652e commit 6fb1b16Copy full SHA for 6fb1b16
Adapter/ExtLdap/Collection.php
@@ -101,7 +101,7 @@ public function offsetGet($offset)
101
{
102
$this->toArray();
103
104
- return isset($this->entries[$offset]) ? $this->entries[$offset] : null;
+ return $this->entries[$offset] ?? null;
105
}
106
107
public function offsetSet($offset, $value)
Entry.php
@@ -59,7 +59,7 @@ public function hasAttribute(string $name)
59
*/
60
public function getAttribute(string $name)
61
62
- return isset($this->attributes[$name]) ? $this->attributes[$name] : null;
+ return $this->attributes[$name] ?? null;
63
64
65
/**
0 commit comments