Loading src/UnicaenLdap/Service/AbstractService.php +8 −9 Original line number Diff line number Diff line Loading @@ -323,21 +323,20 @@ abstract class AbstractService implements /** * Retourne un tableau d'attributs * * @param resource $resource * @param resource|\Ldap\Connection $resource * @param resource $entry * @return null|array * @desc depuis php 8.1 $resource est de type Ldap\Connection */ private function __getEntryAttributes($resource, $entry) { if (!is_resource($resource)) { if (!is_resource($resource) && !$resource instanceof \Ldap\Connection) { return null; } $berIdentifier = null; $name = ldap_first_attribute( $resource, $entry//, $berIdentifier $resource, $entry ); $attributes = array(); Loading @@ -359,7 +358,7 @@ abstract class AbstractService implements $attributes[$attrName] = $data; $name = ldap_next_attribute( $resource, $entry//, $berIdentifier $resource, $entry ); } ksort($attributes, SORT_LOCALE_STRING); Loading Loading
src/UnicaenLdap/Service/AbstractService.php +8 −9 Original line number Diff line number Diff line Loading @@ -323,21 +323,20 @@ abstract class AbstractService implements /** * Retourne un tableau d'attributs * * @param resource $resource * @param resource|\Ldap\Connection $resource * @param resource $entry * @return null|array * @desc depuis php 8.1 $resource est de type Ldap\Connection */ private function __getEntryAttributes($resource, $entry) { if (!is_resource($resource)) { if (!is_resource($resource) && !$resource instanceof \Ldap\Connection) { return null; } $berIdentifier = null; $name = ldap_first_attribute( $resource, $entry//, $berIdentifier $resource, $entry ); $attributes = array(); Loading @@ -359,7 +358,7 @@ abstract class AbstractService implements $attributes[$attrName] = $data; $name = ldap_next_attribute( $resource, $entry//, $berIdentifier $resource, $entry ); } ksort($attributes, SORT_LOCALE_STRING); Loading