From 1178ca02a103d525e51e75fdc3bb16029e855873 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Tue, 18 Jan 2022 20:27:39 +0000 Subject: [PATCH] Correctly document CRM_Utils_Hook::pre to allow null ID --- CRM/Utils/Hook.php | 2 +- Civi/Core/Event/PreEvent.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index a67f2a9efc..b7f65ff36f 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -331,7 +331,7 @@ abstract class CRM_Utils_Hook { * The type of operation being performed. * @param string $objectName * The name of the object. - * @param int $id + * @param int|null $id * The object id if available. * @param array $params * The parameters used for object creation / editing. diff --git a/Civi/Core/Event/PreEvent.php b/Civi/Core/Event/PreEvent.php index db25c344e0..444739b1c3 100644 --- a/Civi/Core/Event/PreEvent.php +++ b/Civi/Core/Event/PreEvent.php @@ -44,7 +44,7 @@ class PreEvent extends GenericHookEvent { * * @param string $action * @param string $entity - * @param int $id + * @param int|null $id * @param array $params */ public function __construct($action, $entity, $id, &$params) { -- 2.25.1