From b4d2082ab5348aed90a18da53be6bbd5986637ae Mon Sep 17 00:00:00 2001 From: pxpm Date: Tue, 5 Nov 2024 15:51:04 +0000 Subject: [PATCH] allow empty parameters --- src/app/Library/CrudPanel/Hooks/LifecycleHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Library/CrudPanel/Hooks/LifecycleHooks.php b/src/app/Library/CrudPanel/Hooks/LifecycleHooks.php index 49d3b616b3..336e49e5e8 100644 --- a/src/app/Library/CrudPanel/Hooks/LifecycleHooks.php +++ b/src/app/Library/CrudPanel/Hooks/LifecycleHooks.php @@ -14,7 +14,7 @@ public function hookInto(string|array $hooks, callable $callback): void } } - public function trigger(string|array $hooks, array $parameters): void + public function trigger(string|array $hooks, array $parameters = []): void { $hooks = is_array($hooks) ? $hooks : [$hooks]; foreach ($hooks as $hook) {