Skip to content

Commit 6fb1b16

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: CS: Apply ternary_to_null_coalescing fixer
2 parents ebcf7b7 + e6a652e commit 6fb1b16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Adapter/ExtLdap/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function offsetGet($offset)
101101
{
102102
$this->toArray();
103103

104-
return isset($this->entries[$offset]) ? $this->entries[$offset] : null;
104+
return $this->entries[$offset] ?? null;
105105
}
106106

107107
public function offsetSet($offset, $value)

Entry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function hasAttribute(string $name)
5959
*/
6060
public function getAttribute(string $name)
6161
{
62-
return isset($this->attributes[$name]) ? $this->attributes[$name] : null;
62+
return $this->attributes[$name] ?? null;
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)