diff --git a/modules/localgov_directories_location/src/EventSubscriber/SearchApiSubscriber.php b/modules/localgov_directories_location/src/EventSubscriber/SearchApiSubscriber.php index b9e5d77..792e13e 100644 --- a/modules/localgov_directories_location/src/EventSubscriber/SearchApiSubscriber.php +++ b/modules/localgov_directories_location/src/EventSubscriber/SearchApiSubscriber.php @@ -32,7 +32,7 @@ public function __construct(DefaultFacetManager $facet_manager) { /** * {@inheritdoc} */ - public static function getSubscribedEvents() { + public static function getSubscribedEvents(): array { return [ SearchApiEvents::QUERY_PRE_EXECUTE => 'queryPreExecute', ]; diff --git a/src/EventSubscriber/DirectoriesConfigSubscriber.php b/src/EventSubscriber/DirectoriesConfigSubscriber.php index f70ce8a..15fd1ad 100644 --- a/src/EventSubscriber/DirectoriesConfigSubscriber.php +++ b/src/EventSubscriber/DirectoriesConfigSubscriber.php @@ -130,7 +130,7 @@ protected function ignoreConfigNames(StorageInterface $storage) { /** * {@inheritdoc} */ - public static function getSubscribedEvents() { + public static function getSubscribedEvents(): array { $events[ConfigEvents::STORAGE_TRANSFORM_IMPORT][] = ['onImportTransform']; $events[ConfigEvents::STORAGE_TRANSFORM_EXPORT][] = ['onExportTransform']; return $events;