heiglandreas / authLdap

LDAP-Authentication for WordPress
http://andreas.heigl.org/cat/dev/wp/authldap/
MIT License
69 stars 38 forks source link

PHP 8.2 deprecation: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated #234

Open Krymonota opened 1 year ago

Krymonota commented 1 year ago

When I did some debugging, I could find the following deprecation message in the debug log:

PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/authldap/authLdap.php on line 436

This relates to the web attribute option, which is empty in my case: https://github.com/heiglandreas/authLdap/blob/cee33201825588f6b85648291f2736be8bdad336/authLdap.php#L436

The second name attribute option is also affected, as the default value is empty is well.