Loading src/UnicaenLdap/Service/AbstractService.php +5 −7 Original line number Diff line number Diff line Loading @@ -326,20 +326,19 @@ 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 @@ -361,8 +360,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 +5 −7 Original line number Diff line number Diff line Loading @@ -326,20 +326,19 @@ 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 @@ -361,8 +360,7 @@ abstract class AbstractService implements $attributes[$attrName] = $data; $name = ldap_next_attribute( $resource, $entry, $berIdentifier $resource, $entry ); } ksort($attributes, SORT_LOCALE_STRING); Loading