Skip to content

Commit

Permalink
allow empty parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Nov 5, 2024
1 parent eac7c45 commit b4d2082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Library/CrudPanel/Hooks/LifecycleHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b4d2082

Please sign in to comment.