sol1 / icingaweb2-module-netbox

Netbox importer for director, and integration with netbox
28 stars 6 forks source link

fix missing string cast causing deprecated explode call #31

Closed TheFireMike closed 7 months ago

TheFireMike commented 7 months ago

As from PHP 8.1, passing null to an explode call is deprecated and causes a warning being persistent is syslog.

Source: PHP - Deprecated Features Example syslog entry: Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /usr/share/icingaweb2/modules/netbox/library/Netbox/ProvidedHook/Director/ImportSource.php on line 133

Fixed by adding string cast to respective explode calls.

sol1-matt commented 7 months ago

Thanks @TheFireMike , you can find these changes in release v3.6.1.1.