Merge pull request #664 from franzliedke/patch-3

Remove more unneeded Closure references
This commit is contained in:
Taylor Otwell
2012-05-11 12:18:15 -07:00
8 changed files with 7 additions and 10 deletions

View File

@@ -97,14 +97,14 @@ class Connection {
/**
* Execute a callback wrapped in a database transaction.
*
* @param Closure $callback
* @param callback $callback
* @return void
*/
public function transaction($callback)
{
$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
// rollback the transaction and re-throw back to the developer.
try