Skip to content

bin2hex(): Passing null to parameter #1 ($string) of type string is deprecated #959

@deric

Description

@deric
Deprecated: bin2hex(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/icingaweb2/modules/icingadb/library/Icingadb/Redis/VolatileStateResults.php on line 135

relevant part of code:

134             if ($type === 'service' && $row->host instanceof Host) {
135                 $hostStates[bin2hex($row->host->id)] = $row->host->state;
136                 if (empty($hostStateKeys)) {
137                     $hostStateKeys = $row->host->state->getColumns();
138                 }
139             }

To Reproduce

  1. Load data from redis
  2. Open icingaweb

Expected behavior

Don't show deprecation warnings

Your Environment

  • Icinga DB Web version (System - About):
  • Icinga Web 2 version (System - About): 2.12.1
  • Icinga 2 version (icinga2 --version): r2.14.1-1
  • Icinga DB version (icingadb --version): v1.1.1
  • PHP version used (php --version): 8.2.7

Metadata

Metadata

Assignees

Labels

area/viewAffects an entire viewbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions