From 5fa04b2a8e7fb431520dd99e708a044efbfffc26 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Tue, 13 Feb 2024 17:04:20 +0100 Subject: [PATCH] [BUGFIX] Uncaught TYPO3 Exception Too few arguments --- Classes/Integrity/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Integrity/Database.php b/Classes/Integrity/Database.php index 49b59e4f..23bb75b6 100644 --- a/Classes/Integrity/Database.php +++ b/Classes/Integrity/Database.php @@ -129,7 +129,7 @@ public function getChildrenByContainerAndColPos(int $containerId, int $colPos, i return (array)$stm->fetchAllAssociative(); } - public function getContainerRecords(array $cTypes, ?int $pid): array + public function getContainerRecords(array $cTypes, ?int $pid = null): array { $queryBuilder = $this->getQueryBuilder(); $stm = $queryBuilder @@ -170,7 +170,7 @@ public function getContainerRecords(array $cTypes, ?int $pid): array return $rows; } - public function getContainerRecordsFreeMode(array $cTypes, ?int $pid): array + public function getContainerRecordsFreeMode(array $cTypes, ?int $pid = null): array { $queryBuilder = $this->getQueryBuilder(); $stm = $queryBuilder