src/LdapTools/Hydrator/OperationHydrator.php
protected function filterAttributeValues(array $attributes)
    {
        return array_filter($attributes, function ($value) {
            if (is_array($value) && empty($value)) {
                return false;
            }

            return !($value === '' || $value === null);
        });
    }
protected function filterAttributeValues(array $attributes)
    {
        return array_filter($attributes, function ($value) {
            if (is_array($value) && empty($value)) {
                return false;
            }

            return !($value === '' || $value === null);
        });
    }
protected function filterAttributeValues ( array $ attributes ) { return array_filter ( $ attributes , function ( $ value ) { if ( is_array ( $ value ) && empty ( $ value ) ) { return false ; } return ! ( $ value === '' || $ value === null ) ; } ) ; }
Remove empty strings and null values from attribute value arrays. This prevents errors when saving to LDAP and
these are present for some reason.

@param array $attributes
@return array
Remove empty strings and null values from attribute value arrays . This prevents errors when saving to LDAP and these are present for some reason .