Closed maslme closed 11 months ago
I've got a PHP Runtime Deprecation Notice:
mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in [...]t3monitoring_client/Classes/Client.php line 76
With TYPO3 11.5.31 t3monitoring_client 10.0.0 php 8.1.23
Possible solution is to check, if $item is set like /**
@return array */ protected function utf8Converter(array $array) { array_walk_recursive($array, function (&$item) { if(isset ($item)){ if (!mb_detect_encoding($item, 'utf-8', true)) { $item = utf8_encode($item); } } });
return $array;
}
I've got a PHP Runtime Deprecation Notice:
With TYPO3 11.5.31 t3monitoring_client 10.0.0 php 8.1.23
Possible solution is to check, if $item is set like /**
@return array */ protected function utf8Converter(array $array) { array_walk_recursive($array, function (&$item) { if(isset ($item)){ if (!mb_detect_encoding($item, 'utf-8', true)) { $item = utf8_encode($item); } } });
}