if ( is_string( $tag ) ) {
$this->serverTags[$index] = $tag;
} else {
- $this->serverTags[$index] = isset( $info['host'] ) ? $info['host'] : "#$index";
+ $this->serverTags[$index] = $info['host'] ?? "#$index";
}
++$index;
}
if ( $this->serverInfos ) {
// Use custom database defined by server connection info
$info = $this->serverInfos[$serverIndex];
- $type = isset( $info['type'] ) ? $info['type'] : 'mysql';
- $host = isset( $info['host'] ) ? $info['host'] : '[unknown]';
+ $type = $info['type'] ?? 'mysql';
+ $host = $info['host'] ?? '[unknown]';
$this->logger->debug( __CLASS__ . ": connecting to $host" );
// Use a blank trx profiler to ignore expections as this is a cache
$info['trxProfiler'] = new TransactionProfiler();