From 5250f97809b55b8c11259561ce6df9a6f1932253 Mon Sep 17 00:00:00 2001 From: Benjamin Serfhos Date: Mon, 29 Oct 2018 14:01:03 +0100 Subject: [PATCH] [BUGFIX] Make sure boolean is returned for strict return type When configured by comma seperate list, it should return true --- Classes/Domain/Index/TcaIndexer/TcaTableService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Index/TcaIndexer/TcaTableService.php b/Classes/Domain/Index/TcaIndexer/TcaTableService.php index 6216dae..5e40589 100644 --- a/Classes/Domain/Index/TcaIndexer/TcaTableService.php +++ b/Classes/Domain/Index/TcaIndexer/TcaTableService.php @@ -384,7 +384,7 @@ class TcaTableService implements TcaTableServiceInterface */ protected function isBlackListedRootLineConfigured(): bool { - return $this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist'); + return (bool)$this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist'); } /** @@ -396,7 +396,8 @@ class TcaTableService implements TcaTableServiceInterface { return GeneralUtility::intExplode( ',', - $this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist') + $this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist'), + true ); }