Commit 68f65108 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by Markus Kalkbrenner
Browse files

Issue #3259764 by idebr, mkalkbrenner: [PHP8.1] Deprecation notice when...

Issue #3259764 by idebr, mkalkbrenner: [PHP8.1] Deprecation notice when running outdated config: strlen(): Passing null to parameter #1 ($string) of type string is deprecated
parent 64e353a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ class Utility {
   * @throws \Drupal\search_api\SearchApiException
   *   If a problem occurred while retrieving the files.
   */
  public static function getServerFiles(ServerInterface $server, $dir_name = NULL) {
  public static function getServerFiles(ServerInterface $server, string $dir_name = '') {
    /** @var \Drupal\search_api_solr\SolrBackendInterface $backend */
    $backend = $server->getBackend();
    $response = $backend->getSolrConnector()->getFile($dir_name);