From 6a02902c8373bff899054878a129780f94149272 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sun, 28 Aug 2022 16:26:50 -0700 Subject: [PATCH] Translation BAO - Minor strictness cleanups --- CRM/Core/BAO/Translation.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/Translation.php b/CRM/Core/BAO/Translation.php index f508281c9d..f187603118 100644 --- a/CRM/Core/BAO/Translation.php +++ b/CRM/Core/BAO/Translation.php @@ -11,13 +11,14 @@ use Civi\Api4\Generic\AbstractAction; use Civi\Api4\Translation; +use Civi\Core\HookInterface; /** * * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing */ -class CRM_Core_BAO_Translation extends CRM_Core_DAO_Translation implements \Civi\Core\HookInterface { +class CRM_Core_BAO_Translation extends CRM_Core_DAO_Translation implements HookInterface { use CRM_Core_DynamicFKAccessTrait; @@ -26,7 +27,7 @@ class CRM_Core_BAO_Translation extends CRM_Core_DAO_Translation implements \Civi * * @return array[] */ - public static function getStatuses() { + public static function getStatuses(): array { return [ ['id' => 1, 'name' => 'active', 'label' => ts('Active')], ['id' => 2, 'name' => 'draft', 'label' => ts('Draft')], -- 2.25.1