The arguments passed to ldap_get_dn() in LdapUtility::getDn() and ldap_get_attributes() in LdapUtility::getAttributes() are not checked if they are a resource. They can be a boolean value which leads to a warning. To work around this the warnings/errors of those functions are suppressed with "@". This is bad design. It would be better to check those arguments and act accordingly.
I will provide a pull request to optimize this.
The arguments passed to ldap_get_dn() in LdapUtility::getDn() and ldap_get_attributes() in LdapUtility::getAttributes() are not checked if they are a resource. They can be a boolean value which leads to a warning. To work around this the warnings/errors of those functions are suppressed with "@". This is bad design. It would be better to check those arguments and act accordingly. I will provide a pull request to optimize this.