Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 9, 2020
1 parent fa34d93 commit db0d0ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,12 @@ protected function createQueuedHandlerCallable($class, $method)
/**
* Determine if the given event handler should be dispatched after all database transactions have committed.
*
* @param mixed $listener
* @param object|mixed $listener
* @return bool
*/
protected function handlerShouldBeDispatchedAfterDatabaseTransactions($listener)
{
return ($listener->dispatchAfterCommit ?? null) && $this->container->bound('db.transactions');
return ($listener->afterCommit ?? null) && $this->container->bound('db.transactions');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Events/ListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ListenerTestListenerAfterCommit
{
public static $ran = false;

public $dispatchAfterCommit = true;
public $afterCommit = true;

public function handle()
{
Expand Down

0 comments on commit db0d0ba

Please sign in to comment.