Fix PHPDoc referring to Closure class.
This commit is contained in:
parent
f6bad1e809
commit
09cb38fc67
|
@ -97,14 +97,14 @@ protected function grammar()
|
||||||
/**
|
/**
|
||||||
* Execute a callback wrapped in a database transaction.
|
* Execute a callback wrapped in a database transaction.
|
||||||
*
|
*
|
||||||
* @param Closure $callback
|
* @param callback $callback
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function transaction($callback)
|
public function transaction($callback)
|
||||||
{
|
{
|
||||||
$this->pdo->beginTransaction();
|
$this->pdo->beginTransaction();
|
||||||
|
|
||||||
// After beginning the database transaction, we will call the Closure
|
// After beginning the database transaction, we will call the callback
|
||||||
// so that it can do its database work. If an exception occurs we'll
|
// so that it can do its database work. If an exception occurs we'll
|
||||||
// rollback the transaction and re-throw back to the developer.
|
// rollback the transaction and re-throw back to the developer.
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue