production.ERROR: Argument 1 passed to LibreNMS\Cache\Device::get()

Hello, on two installations of LNMS, have same errors in log, when i access /search/search=arp
And “No results found!” cause exception:


[2020-08-13 23:53:33] production.ERROR: Argument 1 passed to LibreNMS\Cache\Device::get() must be of the type integer or null, string given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 261 {"userId":1,"exception":"[object] (TypeError(code: 0): Argument 1 passed to LibreNMS\\Cache\\Device::get() must be of the type integer or null, string given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 261 at /opt/librenms/LibreNMS/Cache/Device.php:60)
[stacktrace]
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): LibreNMS\\Cache\\Device->get('S')
#1 /opt/librenms/includes/common.php(331): Illuminate\\Support\\Facades\\Facade::__callStatic('get', Array)
#2 /opt/librenms/includes/rewrites.php(59): device_by_id_cache('S')
#3 /opt/librenms/includes/html/table/arp-search.inc.php(100): cleanPort('System')
#4 /opt/librenms/html/ajax_table.php(42): include_once('/opt/librenms/i...')
#5 {main}
"}
Component | Version
--------- | -------
LibreNMS  | 1.66-27-gfddf2eb6a
DB Schema | 2020_07_29_143221_add_device_perf_index (172)
PHP       | 7.2.24-0ubuntu0.19.04.2
Python    | 3.7.3
MySQL     | 10.3.20-MariaDB-0ubuntu0.19.04.1
RRDTool   | 1.7.1
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.10.10
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

How to debug and fix?

Fixed by https://github.com/librenms/librenms/pull/12075