Closed djchen closed 2 years ago
@djchen thanks for the contribution. This appears to be an undocumented change in behavior of the trim()
function in PHP 8.X. I’ll apply this change asap and probably change it to check whether the variable is string.
Manually added this in https://github.com/Art-of-WiFi/UniFi-API-client/releases/tag/v1.1.75 with some changes and added similar chacks in other methods as well as needed. Thanks!
In PHP8, I get this deprecation warning about using the
trim
function with a null input:Update the
list_clients
function to only trim and lowercaseclient_mac
if it is not null.