DirectoryTree / LdapRecord-Laravel

Multi-domain LDAP Authentication & Management for Laravel.
https://ldaprecord.com/docs/laravel/v3
MIT License
483 stars 51 forks source link

[Bug] utf8_encode is deprecated in PHP 8.3 #633

Closed SBordier44 closed 4 months ago

SBordier44 commented 4 months ago

Environment:

Describe the bug:

utf8_encode(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/directorytree/ldaprecord-laravel/src/Middleware/WindowsAuthenticate.php on line 403.

https://www.php.net/manual/en/function.utf8-encode.php // utf8_encore() is deprecated in PHP 8.2+

stevebauman commented 4 months ago

Thanks for the report @SBordier44! Fixed in v3.2.1.