[BUGFIX] Fix PHP 8 related warnings in recordlist