Commit 3293fcaf authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Always return an integer to avoid possible SQL errors

parent ff3c42b3
Pipeline #9402 passed with stages
in 9 minutes and 18 seconds
......@@ -243,7 +243,7 @@ class ExtensionKey
return !empty($items);
}
public function getUid(): ?int
public function getUid(): int
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_terfe2_domain_model_extension');
$uid = $queryBuilder
......@@ -255,7 +255,7 @@ class ExtensionKey
->execute()
->fetchColumn();
return !empty($uid) ? (int)$uid : null;
return !empty($uid) ? (int)$uid : 0;
}
public function validateComposerNameInExtension(array $composerInfo): void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment