Skip to content

Commit

Permalink
Merge pull request #22562 from braders/hook-preevent-docblock
Browse files Browse the repository at this point in the history
(NFC) Correctly document CRM_Utils_Hook::pre to allow null ID
  • Loading branch information
eileenmcnaughton authored Jan 19, 2022
2 parents 7474dfb + 1178ca0 commit 37519cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Utils/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function requireCiviModules(&$moduleList) {
* 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.
Expand Down
2 changes: 1 addition & 1 deletion Civi/Core/Event/PreEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 37519cb

Please sign in to comment.