Skip to content

Commit

Permalink
Fix readme method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Friars committed Oct 25, 2023
1 parent 7b30a14 commit 21df3af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ laravel-hush is a Laravel package that allows you to disable the observers and h
- [Usage](#usage)
- [withoutObserver(string $observer, Closure $callback)](#withoutobserverstring-observer-closure-callback)
- [withoutObservers(array $observers, Closure $callback)](#withoutobserversarray-observers-closure-callback)
- [withoutHandler(string $event, Closure $callback, array $classes)](#withouthandlerstring-event-closure-callback-array-classes)
- [withoutHandlers(array $events, Closure $callback, array $classes)](#withouthandlersarray-events-closure-callback-array-classes)
- [withoutHandler(string $event, Closure $callback, array $classes = [])](#withouthandlerstring-event-closure-callback-array-classes)
- [withoutHandlers(array $events, Closure $callback, array $classes = [])](#withouthandlersarray-events-closure-callback-array-classes)
- [Credits](#credits)
- [License](#license)
- [Security Vulnerabilities](#security-vulnerabilities)
Expand Down Expand Up @@ -67,7 +67,7 @@ User::withoutObservers([UserObserver::class, ExpirableObserver::class], function
});
```

### withoutHandler(string $event, Closure $callback, array $classes)
### withoutHandler(string $event, Closure $callback, array $classes = [])

This method will disable handlers for the provided event during the execution of the callback.

Expand All @@ -91,7 +91,7 @@ User::withoutHandler('created', function () {
}, [User::class]);
```

### withoutHandlers(array $events, Closure $callback, array $classes)
### withoutHandlers(array $events, Closure $callback, array $classes = [])

This method is the same as `withoutHandler()` but allows you to pass in an array of events to disable handlers for.

Expand Down

0 comments on commit 21df3af

Please sign in to comment.