Skip to content

Commit

Permalink
tweak method name and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 6, 2019
1 parent d3c1d48 commit 5c5d6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,12 @@ public static function unsetEventDispatcher()
}

/**
* Execute a callback without firing any model events for this model type.
* Execute a callback without firing any model events for any model type.
*
* @param callable $callback
* @return mixed
*/
public static function withoutEventDispatcher(callable $callback)
public static function withoutEvents(callable $callback)
{
$dispatcher = static::getEventDispatcher();

Expand Down

0 comments on commit 5c5d6b2

Please sign in to comment.