Skip to content

Commit

Permalink
[BUGFIX] Passing null to parameter of type string is deprecated, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Oct 25, 2024
1 parent f0f858b commit 37d0f3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog

Upcoming version
[BUGFIX] parse_ini_string(): Passing null to parameter #1 ($ini_string) of type string is deprecated. Thanks to medarob. https://github.com/tpwd/ke_search/issues/247

Version 6.0.1, 25 October 2024
[BUGFIX] Add missing storage page and recursive option. Thanks to Torben Hansen. https://github.com/tpwd/ke_search/issues/251
[BUGFIX] Undefined array key "sortByAdmin". Thanks to Simon Praetorius. https://github.com/tpwd/ke_search/issues/252
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/AdditionalContentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function parseAndProcessAdditionalTablesConfiguration(): array
// parse_ini_string will throw a warning if it could not parse the string.
// If the system is configured to turn a warning into an exception we catch it here.
try {
$additionalTableConfig = parse_ini_string($this->indexerConfig['additional_tables'], true);
$additionalTableConfig = parse_ini_string($this->indexerConfig['additional_tables'] ?? '', true);
} catch (\Exception $e) {
$errorMessage =
'Error while parsing additional table configuration for indexer "' . $this->indexerConfig['title']
Expand Down

0 comments on commit 37d0f3e

Please sign in to comment.