[BUGFIX] Make sure boolean is returned for strict return type

When configured by comma seperate list, it should return true
This commit is contained in:
Benjamin Serfhos 2018-10-29 14:01:03 +01:00
parent 9b0b0305a7
commit 5250f97809

View file

@ -384,7 +384,7 @@ class TcaTableService implements TcaTableServiceInterface
*/ */
protected function isBlackListedRootLineConfigured(): bool 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( return GeneralUtility::intExplode(
',', ',',
$this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist') $this->configuration->getIfExists('indexing.' . $this->getTableName() . '.rootLineBlacklist'),
true
); );
} }