Skip to content

Commit

Permalink
bug fix - typehint hook create new customer
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspijak committed Sep 14, 2023
1 parent 3b82558 commit 000e65c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Event/Hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public static function init(): void
), 100, 3);


add_action('woocommerce_created_customer', Helpers::dispatch('customer_new', fn (Dispatcher $dispatcher, int $customer_id, array $data, string $password_generated) =>
add_action('woocommerce_created_customer', Helpers::dispatch('customer_new', fn (Dispatcher $dispatcher, int $customer_id, array $data, /*string|bool*/ $password_generated) =>
$dispatcher->dispatch('customer', 'new', new Variables([
'customer_id' => $customer_id,
'password' => $password_generated,
'password' => (string) $password_generated,
]))
), 100, 3);

Expand Down

0 comments on commit 000e65c

Please sign in to comment.