Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 633243f

Browse files
committed
Fixed PHP 7.2 compatibility
1 parent 125afd3 commit 633243f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/Schema/OpenLdap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ protected function loadAttributeTypes()
136136
$this->attributeTypes[$val->getName()] = $val;
137137
}
138138
foreach ($this->attributeTypes as $val) {
139-
if (count($val->sup) > 0) {
139+
if (! empty($val->sup) && count($val->sup) > 0) {
140140
$this->resolveInheritance($val, $this->attributeTypes);
141141
}
142142
foreach ($val->aliases as $alias) {

0 commit comments

Comments
 (0)