Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Classes/Menu/AbstractMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function isAvailableLanguage(SiteLanguage $language): bool
->from(self::TABLE_NAME)
->where($this->queryBuilder->expr()->andX(...$constraints))
->execute()
->fetchOne();
->fetchColumn();
}

protected function isAvailableCountry(Country $country = null): bool
Expand All @@ -97,7 +97,7 @@ protected function isAvailableCountry(Country $country = null): bool
->from(self::TABLE_NAME)
->where($this->queryBuilder->expr()->andX(...$constraints))
->execute()
->fetchOne();
->fetchColumn();
}

protected function createLink(SiteLanguage $language, Country $country = null): ?string
Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/CountryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function getAllCountries(): array

return array_map(static function ($row) {
return Country::makeInstance($row);
}, $queryBuilder->select('*')->from('tx_z7countries_country')->execute()->fetchAllAssociative());
}, $queryBuilder->select('*')->from('tx_z7countries_country')->execute()->fetchAll(FetchMode::ASSOCIATIVE));
};

return self::cacheObject($function, 'allCountries');
Expand Down